target-arm: Make mode switches from Hyp via CPS and MRS illegal
commitaf393ffc6da116b9dd4c70901bad1f4cafb1773d
authorPeter Maydell <peter.maydell@linaro.org>
Tue, 23 Feb 2016 15:36:44 +0000 (23 15:36 +0000)
committerPeter Maydell <peter.maydell@linaro.org>
Fri, 26 Feb 2016 15:09:41 +0000 (26 15:09 +0000)
treede9f7ea2c05751c1675f91ec1fd996d7e932bcbb
parent81907a582901671c15be36a63b5063f88f3487e2
target-arm: Make mode switches from Hyp via CPS and MRS illegal

Mode switches from Hyp to any other mode via the CPS and MRS
instructions are illegal mode switches (though obviously switching
via exception return is valid).  Add this check to bad_mode_switch().

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