Skip to content

Commit d0974e1

Browse files
Rot127ivg
authored andcommitted
Fix dest, src reg confusion.
1 parent b347d1e commit d0974e1

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

target/ppc/translate.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1943,7 +1943,7 @@ static inline void gen_op_addic(DisasContext *ctx, bool compute_rc0)
19431943
gen_op_arith_add(ctx, cpu_gpr[rD(ctx->opcode)], cpu_gpr[rA(ctx->opcode)],
19441944
c, cpu_ca, cpu_ca32, 0, 1, 0, compute_rc0);
19451945
tcg_temp_free(c);
1946-
log_load_gpr(rD(ctx->opcode));
1946+
log_store_gpr(rD(ctx->opcode));
19471947
}
19481948

19491949
static void gen_addic(DisasContext *ctx)
@@ -3547,7 +3547,7 @@ static inline void gen_addr_reg_index(DisasContext *ctx, TCGv EA)
35473547

35483548
static inline void gen_addr_register(DisasContext *ctx, TCGv EA)
35493549
{
3550-
log_load_gpr(rD(ctx->opcode));
3550+
log_load_gpr(rA(ctx->opcode));
35513551
if (rA(ctx->opcode) == 0) {
35523552
tcg_gen_movi_tl(EA, 0);
35533553
} else if (NARROW_MODE(ctx)) {

0 commit comments

Comments
 (0)