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 <peter.mayd...@linaro.org> > --- > hw/intc/armv7m_nvic.c | 6 ++++++ > 1 file changed, 6 insertions(+)
Reviewed-by: Richard Henderson <richard.hender...@linaro.org> r~