]> git.proxmox.com Git - mirror_qemu.git/commit
nvic: In escalation to HardFault, support HF not being priority -1
authorPeter Maydell <peter.maydell@linaro.org>
Tue, 12 Sep 2017 18:13:59 +0000 (19:13 +0100)
committerPeter Maydell <peter.maydell@linaro.org>
Thu, 21 Sep 2017 15:31:09 +0000 (16:31 +0100)
commit94a34abe32fcdc70b3ee388ccf48b6d3d1aedcfc
treef417bc89951f5fed8a0d23856a21d20ce614260d
parent80ac2390358c906215a849670ca5b7a3d1d112a3
nvic: In escalation to HardFault, support HF not being priority -1

When escalating to HardFault, we must go into Lockup if we
can't take the synchronous HardFault because the current
execution priority is already at or below the priority of
HardFault. In v7M HF is always priority -1 so a simple < 0
comparison sufficed; in v8M the priority of HardFault can
vary depending on whether it is a Secure or NonSecure
HardFault, so we must check against the priority of the
HardFault exception vector we're about to use.

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