[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [PATCH 1/4] hw/intc/armv7m_nvic: Rebuild hflags on reset
From: |
Richard Henderson |
Subject: |
Re: [PATCH 1/4] hw/intc/armv7m_nvic: Rebuild hflags on reset |
Date: |
Tue, 3 Mar 2020 10:35:12 -0800 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.4.1 |
On 3/3/20 9:49 AM, Peter Maydell wrote:
> Some of an M-profile CPU's cached hflags state depends on state that's
> in our NVIC object. We already do an hflags rebuild when the NVIC
> registers are written, but we also need to do this on NVIC reset,
> because there's no guarantee that this will happen before the
> CPU reset.
>
> This fixes an assertion due to mismatched hflags which happens if
> the CPU is reset from inside a HardFault handler.
>
> Signed-off-by: Peter Maydell <address@hidden>
> ---
> hw/intc/armv7m_nvic.c | 6 ++++++
> 1 file changed, 6 insertions(+)
Reviewed-by: Richard Henderson <address@hidden>
r~