Michael Davidsaver 29c483a506 arm: add MPU support to M profile CPUs
The M series MPU is almost the same as the already implemented R
profile MPU (v7 PMSA).  So all we need to implement here is the MPU
register interface in the system register space.

This implementation has the same restriction as the R profile MPU
that it doesn't permit regions to be sized down smaller than 1K.

We also do not yet implement support for MPU_CTRL.HFNMIENA; this
bit should if zero disable use of the MPU when running HardFault,
NMI or with FAULTMASK set to 1 (ie at an execution priority of
less than zero) -- if the MPU is enabled we don't treat these
cases any differently.

Signed-off-by: Michael Davidsaver <mdavidsaver@gmail.com>
Message-id: 1493122030-32191-13-git-send-email-peter.maydell@linaro.org
[PMM: Keep all the bits in mpu_ctrl field, rather than
 using SCTLR bits for them; drop broken HFNMIENA support;
 various cleanup]
Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
2017-06-02 11:51:48 +01:00
..
2016-10-04 13:28:07 +01:00
2017-01-27 18:08:00 +01:00
2017-05-30 14:15:04 +01:00
2016-05-18 15:04:27 +03:00
2017-01-27 18:07:59 +01:00
2017-05-17 10:37:01 -03:00
2017-05-18 10:01:08 +01:00
2017-05-30 14:15:04 +01:00
2016-01-29 15:07:25 +00:00
2017-05-30 14:15:04 +01:00
2017-05-30 14:15:04 +01:00
2017-05-17 10:37:01 -03:00
2016-10-28 18:17:24 +03:00
2017-05-29 14:19:16 +02:00
2017-05-30 14:15:04 +01:00