OSDN Git Service

hw/intc/armv7m_nvic: Implement M profile cache maintenance ops
authorPeter Maydell <peter.maydell@linaro.org>
Thu, 15 Feb 2018 18:29:37 +0000 (18:29 +0000)
committerPeter Maydell <peter.maydell@linaro.org>
Thu, 15 Feb 2018 18:29:49 +0000 (18:29 +0000)
commite8ab26c48475e746d0aa0c4da2128c626dc00c0a
tree8c0a626b82870a63202cfc19823ed61bb646e051
parent4f2eff36ad2d8f19a63544ff77b572d307c7f5c9
hw/intc/armv7m_nvic: Implement M profile cache maintenance ops

For M profile cores, cache maintenance operations are done by
writing to special registers in the system register space.
For QEMU, cache operations are always NOPs, since we don't
implement the cache. Implementing these explicitly avoids
a spurious LOG_GUEST_ERROR when the guest uses them.

Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
Message-id: 20180209165810.6668-4-peter.maydell@linaro.org
hw/intc/armv7m_nvic.c