* [Qemu-devel] [PATCH] sparc64: fix done instruction pc
@ 2009-10-04 21:49 Igor V. Kovalenko
0 siblings, 0 replies; only message in thread
From: Igor V. Kovalenko @ 2009-10-04 21:49 UTC (permalink / raw)
To: qemu-devel
Fix done instruction to resume with pc=tnpc, npc=tnpc+4
Signed-off-by: Igor V. Kovalenko <igor.v.kovalenko@gmail.com>
---
target-sparc/op_helper.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
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;
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2009-10-04 21:49 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-10-04 21:49 [Qemu-devel] [PATCH] sparc64: fix done instruction pc Igor V. Kovalenko
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).