nvic: Implement NVIC_ITNS<n> registers
commite1be0a576ba4836e772d717fcc8d3c79e560179b
authorPeter Maydell <peter.maydell@linaro.org>
Tue, 12 Sep 2017 18:13:54 +0000 (12 19:13 +0100)
committerPeter Maydell <peter.maydell@linaro.org>
Thu, 21 Sep 2017 15:29:27 +0000 (21 16:29 +0100)
tree5d750d5c56fe76abe8b29e2faa80f1643088bfa9
parent028b0da424ba85049557c61f9f0a8a6698352b41
nvic: Implement NVIC_ITNS<n> registers

For v8M, the NVIC has a new set of registers per interrupt,
NVIC_ITNS<n>. These determine whether the interrupt targets Secure
or Non-secure state. Implement the register read/write code for
these, and make them cause NVIC_IABR, NVIC_ICER, NVIC_ISER,
NVIC_ICPR, NVIC_IPR and NVIC_ISPR to RAZ/WI for non-secure
accesses to fields corresponding to interrupts which are
configured to target secure state.

Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
Message-id: 1505240046-11454-8-git-send-email-peter.maydell@linaro.org
hw/intc/armv7m_nvic.c
include/hw/intc/armv7m_nvic.h