]> git.proxmox.com Git - mirror_qemu.git/commit - target/arm/helper.c
target/arm: Restore security state on exception return
authorPeter Maydell <peter.maydell@linaro.org>
Fri, 6 Oct 2017 15:46:47 +0000 (16:46 +0100)
committerPeter Maydell <peter.maydell@linaro.org>
Fri, 6 Oct 2017 15:46:47 +0000 (16:46 +0100)
commit3919e60b6efd9a86a0e6ba637aa584222855ac3a
tree7940183ef4913e9968f8c1722ceff7c97ad072ce
parentde2db7ec894f11931932ca78cd14a8d2b1389d5b
target/arm: Restore security state on exception return

Now that we can handle the CONTROL.SPSEL bit not necessarily being
in sync with the current stack pointer, we can restore the correct
security state on exception return. This happens before we start
to read registers off the stack frame, but after we have taken
possible usage faults for bad exception return magic values and
updated CONTROL.SPSEL.

Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
Message-id: 1506092407-26985-5-git-send-email-peter.maydell@linaro.org
target/arm/helper.c