Skip to content

Commit

Permalink
Fix program counter reported for Arm32 instruction tracing
Browse files Browse the repository at this point in the history
It was logging the next address rather than the current one so was
always off by 4.
  • Loading branch information
arichardson committed Jun 18, 2024
1 parent 6fc0bf7 commit b168573
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion target/arm/translate.c
Original file line number Diff line number Diff line change
Expand Up @@ -9110,7 +9110,7 @@ static void arm_tr_translate_insn(DisasContextBase *dcbase, CPUState *cpu)

#if defined(CONFIG_TCG_LOG_INSTR)
if (unlikely(dcbase->log_instr_enabled)) {
TCGv pc = tcg_const_tl(dcbase->pc_next);
TCGv pc = tcg_const_tl(dc->pc_curr);
gen_helper_arm_log_instr(cpu_env, pc, tcg_constant_i32(insn));
tcg_temp_free(pc);
}
Expand Down

0 comments on commit b168573

Please sign in to comment.