arm: Implement HFNMIENA support for M profile MPU
authorPeter Maydell <peter.maydell@linaro.org>
Fri, 2 Jun 2017 10:51:49 +0000 (11:51 +0100)
committerPeter Maydell <peter.maydell@linaro.org>
Fri, 2 Jun 2017 10:51:49 +0000 (11:51 +0100)
commit3bef7012560a7f0ea27b265105de5090ba117514
tree1612536ce7710cae7a12a9d9f002ef576269e794
parent29c483a506070e8f554c77d22686f405e30b9114
arm: Implement HFNMIENA support for M profile MPU

Implement HFNMIENA support for the M profile MPU. This bit controls
whether the MPU is treated as enabled when executing at execution
priorities of less than zero (in NMI, HardFault or with the FAULTMASK
bit set).

Doing this requires us to use a different MMU index for "running
at execution priority < 0", because we will have different
access permissions for that case versus the normal case.

Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
Message-id: 1493122030-32191-14-git-send-email-peter.maydell@linaro.org
target/arm/cpu.h
target/arm/helper.c
target/arm/translate.c