On 08/22/2017 08:08 AM, Peter Maydell wrote: > As part of ARMv8M, we need to add support for the PMSAv8 MPU > architecture. > > PMSAv8 differs from PMSAv7 both in register/data layout (for instance > using base and limit registers rather than base and size) and also in > behaviour (for example it does not have subregions); rather than > trying to wedge it into the existing PMSAv7 code and data structures, > we define separate ones. > > This commit adds the data structures which hold the state for a > PMSAv8 MPU and the register interface to it. The implementation of > the MPU behaviour will be added in a subsequent commit. > > Signed-off-by: Peter Maydell <peter.mayd...@linaro.org> > --- > target/arm/cpu.h | 13 ++++++ > hw/intc/armv7m_nvic.c | 122 > ++++++++++++++++++++++++++++++++++++++++++++++---- > target/arm/cpu.c | 36 ++++++++++----- > target/arm/machine.c | 28 +++++++++++- > 4 files changed, 179 insertions(+), 20 deletions(-)
Reviewed-by: Richard Henderson <richard.hender...@linaro.org> r~