[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-devel] [PATCH] Fix SWI (SVC) instruction in THUMB.
From: |
Alex Rozenman |
Subject: |
[Qemu-devel] [PATCH] Fix SWI (SVC) instruction in THUMB. |
Date: |
Tue, 25 Dec 2012 16:21:49 +0200 |
target-arm/helper.c (do_interrupt_v7m): When do_interrupt_v7m is called,
PC is already points to a correct instruction (after the SVC one). Don't
modify the PC here.
Signed-off-by: Alex Rozenman <address@hidden>
---
target-arm/helper.c | 1 -
1 file changed, 1 deletion(-)
diff --git a/target-arm/helper.c b/target-arm/helper.c
index e343fac..2da4e9c 100644
--- a/target-arm/helper.c
+++ b/target-arm/helper.c
@@ -1741,7 +1741,6 @@ static void do_interrupt_v7m(CPUARMState *env)
armv7m_nvic_set_pending(env->nvic, ARMV7M_EXCP_USAGE);
return;
case EXCP_SWI:
- env->regs[15] += 2;
armv7m_nvic_set_pending(env->nvic, ARMV7M_EXCP_SVC);
return;
case EXCP_PREFETCH_ABORT:
--
1.7.9.6
- [Qemu-devel] [PATCH] Fix SWI (SVC) instruction in THUMB.,
Alex Rozenman <=