target/arm: Define an IDAU interface
commit181962fd69938bffa1682bfa0ec43f02d829929d
authorPeter Maydell <peter.maydell@linaro.org>
Fri, 2 Mar 2018 10:45:36 +0000 (2 10:45 +0000)
committerPeter Maydell <peter.maydell@linaro.org>
Fri, 2 Mar 2018 11:03:45 +0000 (2 11:03 +0000)
treee801e565b0206bc676c960e526dea1189a44639a
parent891f3bc37fb9dd81a27d19edc091be2603c9c176
target/arm: Define an IDAU interface

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.maydell@linaro.org>
Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
Message-id: 20180220180325.29818-5-peter.maydell@linaro.org
target/arm/cpu.c
target/arm/cpu.h
target/arm/helper.c
target/arm/idau.h [new file with mode: 0644]