nvic: Support banked exceptions in acknowledge and complete
commit5cb18069d7b9486126d1d6f08b7ffd28f57a4fa3
authorPeter Maydell <peter.maydell@linaro.org>
Tue, 12 Sep 2017 18:14:06 +0000 (12 19:14 +0100)
committerPeter Maydell <peter.maydell@linaro.org>
Thu, 21 Sep 2017 15:31:09 +0000 (21 16:31 +0100)
tree822d0e74cca1f64d64d47cdcd32cccd9aab5cd7a
parent437d59c17e96976a567ad1547e272cdfe4a5f1d7
nvic: Support banked exceptions in acknowledge and complete

Update armv7m_nvic_acknowledge_irq() and armv7m_nvic_complete_irq()
to handle banked exceptions:
 * acknowledge needs to use the correct vector, which may be
   in sec_vectors[]
 * acknowledge needs to return to its caller whether the
   exception should be taken to secure or non-secure state
 * complete needs its caller to tell it whether the exception
   being completed is a secure one or not

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