]> git.proxmox.com Git - mirror_qemu.git/commit
target-arm: Forbid mode switch to Mon from Secure EL1
authorPeter Maydell <peter.maydell@linaro.org>
Tue, 23 Feb 2016 15:36:44 +0000 (15:36 +0000)
committerPeter Maydell <peter.maydell@linaro.org>
Fri, 26 Feb 2016 15:09:41 +0000 (15:09 +0000)
commit58ae2d1f037fae1d90eed4522053a85d79edfbec
tree072a63c8bd2fe6e87fb3490ff896e664ea2c6a3e
parente6c8fc07b4fce0729bb747770756835f4b0ca7f4
target-arm: Forbid mode switch to Mon from Secure EL1

In v8 trying to switch mode to Mon from Secure EL1 is an
illegal mode switch. (In v7 this is impossible as all secure
modes except User are at EL3.) We can handle this case by
making a switch to Mon valid only if the current EL is 3,
which then gives the correct answer whether EL3 is AArch32
or AArch64.

Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
Reviewed-by: Sergey Fedorov <serge.fdrv@gmail.com>
Message-id: 1455556977-3644-9-git-send-email-peter.maydell@linaro.org
target-arm/helper.c