nvic: Disable the non-secure HardFault if AIRCR.BFHFNMINS is clear
commit7208b426c7347982af8f5d6f2608cab6b3431ede
authorPeter Maydell <peter.maydell@linaro.org>
Tue, 12 Sep 2017 18:14:01 +0000 (12 19:14 +0100)
committerPeter Maydell <peter.maydell@linaro.org>
Thu, 21 Sep 2017 15:31:09 +0000 (21 16:31 +0100)
treedfef4f86958ad26723606f311fdc2bb2bc34c450
parent331f4bae6c514a719676d803625cfe197d81a91c
nvic: Disable the non-secure HardFault if AIRCR.BFHFNMINS is clear

If AIRCR.BFHFNMINS is clear, then although NonSecure HardFault
can still be pended via SHCSR.HARDFAULTPENDED it mustn't actually
preempt execution. The simple way to achieve this is to clear the
enable bit for it, since the enable bit isn't guest visible.

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