target/arm: Treat SCTLR_EL1.M as if it were zero when HCR_EL2.TGE is set
commit3d0e3080d8b7abcddc038d18e8401861c369c4c1
authorPeter Maydell <peter.maydell@linaro.org>
Tue, 14 Aug 2018 16:17:21 +0000 (14 17:17 +0100)
committerPeter Maydell <peter.maydell@linaro.org>
Tue, 14 Aug 2018 16:17:21 +0000 (14 17:17 +0100)
tree27b2dd726573b1e0ca10668c25b939e2753a662d
parentac656b166b57332ee397e9781810c956f4f5fde5
target/arm: Treat SCTLR_EL1.M as if it were zero when HCR_EL2.TGE is set

One of the required effects of setting HCR_EL2.TGE is that when
SCR_EL3.NS is 1 then SCTLR_EL1.M must behave as if it is zero for
all purposes except direct reads. That is, it effectively disables
the MMU for the NS EL0/EL1 translation regime.

Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
Message-id: 20180724115950.17316-6-peter.maydell@linaro.org
target/arm/helper.c