Skip to content

Commit c22651c

Browse files
committed
Fix regression: We should also sync npc for SPARC
1 parent 9750d6e commit c22651c

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

qemu/target/sparc/translate.c

+1
Original file line numberDiff line numberDiff line change
@@ -5964,6 +5964,7 @@ static void sparc_tr_translate_insn(DisasContextBase *dcbase, CPUState *cs)
59645964

59655965
// Sync PC in advance
59665966
tcg_gen_movi_tl(tcg_ctx, tcg_ctx->cpu_pc, dc->pc);
5967+
tcg_gen_movi_tl(tcg_ctx, tcg_ctx->cpu_npc, dc->npc);
59675968

59685969
gen_uc_tracecode(tcg_ctx, 4, UC_HOOK_CODE_IDX, uc, dc->pc);
59695970
// the callback might want to stop emulation immediately

0 commit comments

Comments
 (0)