[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-commits] [COMMIT 3723cd0] sparc64: fix done instruction pc
From: |
Anthony Liguori |
Subject: |
[Qemu-commits] [COMMIT 3723cd0] sparc64: fix done instruction pc |
Date: |
Tue, 13 Oct 2009 17:03:20 -0000 |
From: Igor V. Kovalenko <address@hidden>
Fix done instruction to resume with pc=tnpc, npc=tnpc+4
Signed-off-by: Igor V. Kovalenko <address@hidden>
Signed-off-by: Blue Swirl <address@hidden>
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;
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Qemu-commits] [COMMIT 3723cd0] sparc64: fix done instruction pc,
Anthony Liguori <=