Skip to contentSkip to conversation

[4823] ARMv7-M interrupt stack alignment fix.

Qemu-devel Paul Brook 1 participant 1 message Jul 2, 2008

lore
Share & tools
lore

Paul Brook

author
#0 lore raw

Revision: 4823

          http://svn.sv.gnu.org/viewvc/?view=rev&root=qemu&revision=4823
Author:   pbrook
Date:     2008-07-02 16:44:09 +0000 (Wed, 02 Jul 2008)

Log Message:
-----------
ARMv7-M interrupt stack alignment fix.

Modified Paths:
--------------
trunk/target-arm/helper.c

Modified: trunk/target-arm/helper.c
===================================================================

target-arm/helper.c +1 -1
@@ -674,7 +674,7 @@
     /* ??? 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.  */