mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-01 23:03:54 -06:00
nvic: Add cached vectpending_is_s_banked state
With banked exceptions, just the exception number in s->vectpending is no longer sufficient to uniquely identify the pending exception. Add a vectpending_is_s_banked bool which is true if the exception is using the sec_vectors[] array. Signed-off-by: Peter Maydell <peter.maydell@linaro.org> Message-id: 1505240046-11454-4-git-send-email-peter.maydell@linaro.org
This commit is contained in:
parent
17906a162a
commit
e93bc2ac11
2 changed files with 10 additions and 2 deletions
|
@ -1254,6 +1254,7 @@ static void armv7m_nvic_reset(DeviceState *dev)
|
|||
|
||||
s->exception_prio = NVIC_NOEXC_PRIO;
|
||||
s->vectpending = 0;
|
||||
s->vectpending_is_s_banked = false;
|
||||
}
|
||||
|
||||
static void nvic_systick_trigger(void *opaque, int n, int level)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue