On 09/12/2017 01:13 PM, Peter Maydell wrote: > 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.mayd...@linaro.org> > --- > hw/intc/armv7m_nvic.c | 23 ++++++++++++----------- > 1 file changed, 12 insertions(+), 11 deletions(-)
Reviewed-by: Richard Henderson <richard.hender...@linaro.org> r~