Fix corruption of CPSR when SCTLR.EE is set
commit3823b9db77e753041c04c161ac9f4d4cfc661520
authorJulian Brown <julian@codesourcery.com>
Mon, 7 Nov 2016 10:00:24 +0000 (7 10:00 +0000)
committerPeter Maydell <peter.maydell@linaro.org>
Mon, 7 Nov 2016 10:00:24 +0000 (7 10:00 +0000)
tree562d8576d51d02c44808de584da8d0781d5ca9a6
parent3bc4b52ccd7754de4fb177871f1c5eaaa61ec7ef
Fix corruption of CPSR when SCTLR.EE is set

Fix a typo in arm_cpu_do_interrupt_aarch32 (OR'ing with ~CPSR_E
instead of CPSR_E) which meant that when we took an interrupt with
SCTLR.EE set we would corrupt the CPSR.

Signed-off-by: Julian Brown <julian@codesourcery.com>
Reviewed-by: Peter Maydell <peter.maydell@linaro.org>
Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
target-arm/helper.c