target/arm: PSTATE.PAN should not clear exec bits
authorPeter Maydell <peter.maydell@linaro.org>
Mon, 30 Mar 2020 17:06:51 +0000 (18:06 +0100)
committerPeter Maydell <peter.maydell@linaro.org>
Fri, 3 Apr 2020 18:23:53 +0000 (19:23 +0100)
commitf4e1dbc578a051db08a40c05276ebf525b98f949
tree522c5adde80898ba14cb425d6e4dec22b30c33a0
parent8a2b76ffc9ff610c3439617e19f1eb9be02be50f
target/arm: PSTATE.PAN should not clear exec bits

Our implementation of the PSTATE.PAN bit incorrectly cleared all
access permission bits for privileged access to memory which is
user-accessible.  It should only affect the privileged read and write
permissions; execute permission is dealt with via XN/PXN instead.

Fixes: 81636b70c226dc27d7ebc8d
Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
Message-id: 20200330170651.20901-1-peter.maydell@linaro.org
target/arm/helper.c