arm: Don't let no-MPU PMSA cores write to SCTLR.M
commit06312febfb2d35367006ef23608ddd6a131214d4
authorPeter Maydell <peter.maydell@linaro.org>
Fri, 2 Jun 2017 10:51:48 +0000 (2 11:51 +0100)
committerPeter Maydell <peter.maydell@linaro.org>
Fri, 2 Jun 2017 10:51:48 +0000 (2 11:51 +0100)
tree9e849bdaa9b3fe34d433851ce15335d2437c4115
parentf50cd31413d8bc9d1eef8edd1f878324543bf65d
arm: Don't let no-MPU PMSA cores write to SCTLR.M

If the CPU is a PMSA config with no MPU implemented, then the
SCTLR.M bit should be RAZ/WI, so that the guest can never
turn on the non-existent MPU.

Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
Reviewed-by: Alistair Francis <alistair.francis@xilinx.com>
Reviewed-by: Philippe Mathieu-Daudé <f4bug@amsat.org>
Message-id: 1493122030-32191-7-git-send-email-peter.maydell@linaro.org
target/arm/helper.c