|
From: | Richard Henderson |
Subject: | Re: [Qemu-arm] [Qemu-devel] [PATCH 12/19] nvic: In escalation to HardFault, support HF not being priority -1 |
Date: | Tue, 19 Sep 2017 13:50:26 -0500 |
User-agent: | Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.3.0 |
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 <address@hidden> > --- > hw/intc/armv7m_nvic.c | 23 ++++++++++++----------- > 1 file changed, 12 insertions(+), 11 deletions(-) Reviewed-by: Richard Henderson <address@hidden> r~
[Prev in Thread] | Current Thread | [Next in Thread] |