armv7m: Escalate exceptions to HardFault if necessary
commita73c98e159d18155445d29b6044be6ad49fd802f
authorMichael Davidsaver <mdavidsaver@gmail.com>
Tue, 28 Feb 2017 12:08:17 +0000 (28 12:08 +0000)
committerPeter Maydell <peter.maydell@linaro.org>
Tue, 28 Feb 2017 12:08:17 +0000 (28 12:08 +0000)
treeae3ad5aa25517336f2519ac4a21f866e91efe59a
parent7c14b3ac072c48614ca888e101d17ee64312c89f
armv7m: Escalate exceptions to HardFault if necessary

The v7M exception architecture requires that if a synchronous
exception cannot be taken immediately (because it is disabled
or at too low a priority) then it should be escalated to
HardFault (and the HardFault exception is then taken).
Implement this escalation logic.

Signed-off-by: Michael Davidsaver <mdavidsaver@gmail.com>
[PMM: extracted from another patch]
Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
Reviewed-by: Alex Bennée <alex.bennee@linaro.org>
hw/intc/armv7m_nvic.c
target/arm/helper.c