diff --git a/target-sparc/op_helper.c b/target-sparc/op_helper.c index 8992d1c555836cc540e04605c9e7034cd1aef41e..a1ada8bcd535a7f5897cd23df0a0371f7b57429a 100644 --- a/target-sparc/op_helper.c +++ b/target-sparc/op_helper.c @@ -3318,7 +3318,7 @@ void helper_done(void) { trap_state* tsptr = cpu_tsptr(env); - env->pc = tsptr->tpc; + env->pc = tsptr->tnpc; env->npc = tsptr->tnpc + 4; PUT_CCR(env, tsptr->tstate >> 32); env->asi = (tsptr->tstate >> 24) & 0xff;