From: Igor V. Kovalenko Date: Sun, 4 Oct 2009 21:49:27 +0000 (+0400) Subject: sparc64: fix done instruction pc X-Git-Tag: TizenStudio_2.0_p2.3.2~208^2~10128 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=3723cd09500956f7094bafc7dd1167f51a9b89fd;p=sdk%2Femulator%2Fqemu.git sparc64: fix done instruction pc Fix done instruction to resume with pc=tnpc, npc=tnpc+4 Signed-off-by: Igor V. Kovalenko Signed-off-by: Blue Swirl --- diff --git a/target-sparc/op_helper.c b/target-sparc/op_helper.c index 8992d1c..a1ada8b 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;