summaryrefslogtreecommitdiffstats
path: root/include/exec
diff options
context:
space:
mode:
authorSebastian Ottlik2013-09-10 20:09:32 +0200
committerPeter Maydell2013-09-10 20:09:32 +0200
commitf62cafd4c87fad7bb9b9544b4cf4991d34764b11 (patch)
treea334a34281af602744fff638a5e3a0e9b7280ed0 /include/exec
parenttarget-arm: Avoid "1 << 31" undefined behaviour (diff)
downloadqemu-f62cafd4c87fad7bb9b9544b4cf4991d34764b11.tar.gz
qemu-f62cafd4c87fad7bb9b9544b4cf4991d34764b11.tar.xz
qemu-f62cafd4c87fad7bb9b9544b4cf4991d34764b11.zip
target-arm: fix ARMv7M stack alignment on reset
When the initial SP is loaded from the vector table on ARMv7M systems the two least significant bits are ignored as the stack is always aligned at a four byte boundary (see ARM DDI 0403C, B1.4.1 and B1.5.5). So far QEMU did not ignore these bits leading to a stack alignment inconsitent with real hardware for binaries that rely on this behaviour. This patch fixes this issue by masking the two least significant bits when loading the SP. Signed-off-by: Sebastian Ottlik <ottlik@fzi.de> Reviewed-by: Peter Maydell <peter.maydell@linaro.org> Message-id: 1378286595-27072-1-git-send-email-ottlik@fzi.de Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
Diffstat (limited to 'include/exec')
0 files changed, 0 insertions, 0 deletions