Fix regression: We should also sync npc for SPARC

This commit is contained in:
2024-12-07 16:31:20 +08:00
parent 9750d6e2fc
commit c22651c9fe

View File

@@ -5964,6 +5964,7 @@ static void sparc_tr_translate_insn(DisasContextBase *dcbase, CPUState *cs)
// Sync PC in advance
tcg_gen_movi_tl(tcg_ctx, tcg_ctx->cpu_pc, dc->pc);
tcg_gen_movi_tl(tcg_ctx, tcg_ctx->cpu_npc, dc->npc);
gen_uc_tracecode(tcg_ctx, 4, UC_HOOK_CODE_IDX, uc, dc->pc);
// the callback might want to stop emulation immediately