summaryrefslogtreecommitdiffstats
path: root/linux-user
diff options
context:
space:
mode:
authorPeter Maydell2015-03-16 13:30:47 +0100
committerPeter Maydell2015-03-16 13:30:47 +0100
commitfcf83ab103dce6d2951f24f48e30820e7dbb3622 (patch)
tree45fd7842e9c64372faca50d236807dce7b11c362 /linux-user
parenttarget-arm: Fix handling of STM (user) with r15 in register list (diff)
downloadqemu-fcf83ab103dce6d2951f24f48e30820e7dbb3622.tar.gz
qemu-fcf83ab103dce6d2951f24f48e30820e7dbb3622.tar.xz
qemu-fcf83ab103dce6d2951f24f48e30820e7dbb3622.zip
target-arm: Ignore low bit of PC in M-profile exception return
For the ARM M-profile cores, exception return pops various registers including the PC from the stack. The architecture defines that if the lowest bit in the new PC value is set (ie the PC is not halfword aligned) then behaviour is UNPREDICTABLE. In practice hardware implementations seem to simply ignore the low bit, and some buggy RTOSes incorrectly rely on this. QEMU's behaviour was architecturally permitted, but bringing QEMU into line with the hardware behaviour allows more guest code to run. We log the situation as a guest error. This was reported as LP:1428657. Reported-by: Anders Esbensen <anders@lyes.dk> Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
Diffstat (limited to 'linux-user')
0 files changed, 0 insertions, 0 deletions