mirror of
https://github.com/izzy2lost/xemu.git
synced 2026-07-06 00:20:22 -07:00
ARMv7-M interrupt stack alignment fix.
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@4823 c046a42c-6fe2-441c-8c8c-71466251a162
This commit is contained in:
+1
-1
@@ -674,7 +674,7 @@ void do_interrupt_v7m(CPUARMState *env)
|
||||
/* ??? Should only do this if Configuration Control Register
|
||||
STACKALIGN bit is set. */
|
||||
if (env->regs[13] & 4) {
|
||||
env->regs[13] += 4;
|
||||
env->regs[13] -= 4;
|
||||
xpsr |= 0x200;
|
||||
}
|
||||
/* Switch to the handler mode. */
|
||||
|
||||
Reference in New Issue
Block a user