sparc64: fix done instruction pc
Fix done instruction to resume with pc=tnpc, npc=tnpc+4 Signed-off-by: Igor V. Kovalenko <igor.v.kovalenko@gmail.com> Signed-off-by: Blue Swirl <blauwirbel@gmail.com>
This commit is contained in:
parent
1a4ea1e34d
commit
3723cd0950
|
@ -3318,7 +3318,7 @@ void helper_done(void)
|
||||||
{
|
{
|
||||||
trap_state* tsptr = cpu_tsptr(env);
|
trap_state* tsptr = cpu_tsptr(env);
|
||||||
|
|
||||||
env->pc = tsptr->tpc;
|
env->pc = tsptr->tnpc;
|
||||||
env->npc = tsptr->tnpc + 4;
|
env->npc = tsptr->tnpc + 4;
|
||||||
PUT_CCR(env, tsptr->tstate >> 32);
|
PUT_CCR(env, tsptr->tstate >> 32);
|
||||||
env->asi = (tsptr->tstate >> 24) & 0xff;
|
env->asi = (tsptr->tstate >> 24) & 0xff;
|
||||||
|
|
Reference in New Issue