On 02/20/2018 10:03 AM, Peter Maydell wrote: > In v8M, the Implementation Defined Attribution Unit (IDAU) is > a small piece of hardware typically implemented in the SoC > which provides board or SoC specific security attribution > information for each address that the CPU performs MPU/SAU > checks on. For QEMU, we model this with a QOM interface which > is implemented by the board or SoC object and connected to > the CPU using a link property. > > This commit defines the new interface class, adds the link > property to the CPU object, and makes the SAU checking > code call the IDAU interface if one is present. > > Signed-off-by: Peter Maydell <peter.mayd...@linaro.org> > --- > An example of an object that implements the IDAU can be > found in the later patch "hw/arm/iotkit: Model Arm IOT Kit". > --- > target/arm/cpu.h | 3 +++ > target/arm/idau.h | 61 > +++++++++++++++++++++++++++++++++++++++++++++++++++++ > target/arm/cpu.c | 15 +++++++++++++ > target/arm/helper.c | 28 +++++++++++++++++++++--- > 4 files changed, 104 insertions(+), 3 deletions(-) > create mode 100644 target/arm/idau.h
Reviewed-by: Richard Henderson <richard.hender...@linaro.org> r~