提交 3723cd09 编写于 作者: I Igor V. Kovalenko 提交者: Blue Swirl

sparc64: fix done instruction pc

Fix done instruction to resume with pc=tnpc, npc=tnpc+4
Signed-off-by: NIgor V. Kovalenko <igor.v.kovalenko@gmail.com>
Signed-off-by: NBlue Swirl <blauwirbel@gmail.com>
上级 1a4ea1e3
......@@ -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;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册