target-arm: Store SPSR_EL1 state in banked_spsr[1] (SPSR_svc)
commit7847f9ea9fce15a9ecfb62ab72c1e84ff516b0db
authorPeter Maydell <peter.maydell@linaro.org>
Wed, 1 Apr 2015 16:57:29 +0000 (1 17:57 +0100)
committerPeter Maydell <peter.maydell@linaro.org>
Wed, 1 Apr 2015 16:57:29 +0000 (1 17:57 +0100)
tree57af085d325a3b98ff097c385a4c1d5ff8e0bc56
parent4de9a883be653f02f8c1d5dcd1066f614d9606b6
target-arm: Store SPSR_EL1 state in banked_spsr[1] (SPSR_svc)

The AArch64 SPSR_EL1 register is architecturally mandated to
be mapped to the AArch32 SPSR_svc register. This means its
state should live in QEMU's env->banked_spsr[1] field.
Correct the various places in the code that incorrectly
put it in banked_spsr[0].

Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
target-arm/helper-a64.c
target-arm/helper.c
target-arm/internals.h