nvic: Make set_pending and clear_pending take a secure parameter
commit2fb50a33401a2415b71ddc291e8a77bcd2f9e547
authorPeter Maydell <peter.maydell@linaro.org>
Tue, 12 Sep 2017 18:13:56 +0000 (12 19:13 +0100)
committerPeter Maydell <peter.maydell@linaro.org>
Thu, 21 Sep 2017 15:31:09 +0000 (21 16:31 +0100)
treecef1f210de11ae2ca247af50f3984082e221f476
parentff96c64aec91fa2abc134347ad032c50376a6462
nvic: Make set_pending and clear_pending take a secure parameter

Make the armv7m_nvic_set_pending() and armv7m_nvic_clear_pending()
functions take a bool indicating whether to pend the secure
or non-secure version of a banked interrupt, and update the
callsites accordingly.

In most callsites we can simply pass the correct security
state in; in a couple of cases we use TODO comments to indicate
that we will return the code in a subsequent commit.

Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
Message-id: 1505240046-11454-10-git-send-email-peter.maydell@linaro.org
hw/intc/armv7m_nvic.c
hw/intc/trace-events
target/arm/cpu.h
target/arm/helper.c