Peter Maydell 
		8c4985298f 
		
	 
	
	
	hw/intc/armv7m_nvic: Rebuild hflags on reset ... 
			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.maydell@linaro.org>
Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
Message-id: 20200303174950.3298-2-peter.maydell@linaro.org  
		
	 
		2020-03-12 16:01:37 +00:00 
	 
	
	
		 
	
	
		
			
			
			
			
			
			2019-08-16 13:31:53 +02:00 
		 
	
		
			
			
			
			
			
			2020-01-24 20:59:15 +01:00 
		 
	
		
			
			
			
			
			
			2019-12-17 19:33:49 +01:00 
		 
	
		
			
			
			
			
			
			2020-02-28 16:14:57 +00:00 
		 
	
		
			
			
			
			
			
			2020-02-28 16:14:57 +00:00 
		 
	
		
			
			
			
			
			
			2020-02-28 16:14:57 +00:00 
		 
	
		
			
			
			
			
			
			2020-01-24 20:59:15 +01:00 
		 
	
		
			
			
			
			
			
			2020-01-24 20:59:15 +01:00 
		 
	
		
			
			
			
			
			
			2020-01-17 14:27:16 +00:00 
		 
	
		
			
			
			
			
			
			2019-06-17 15:13:19 +01:00 
		 
	
		
			
			
			
			
			
			2019-08-16 13:31:52 +02:00 
		 
	
		
			
			
			
			
			
			2020-01-24 20:59:15 +01:00 
		 
	
		
			
			
			
			
			
			2020-01-30 16:02:05 +00:00 
		 
	
		
			
			
			
			
			
			2019-06-17 15:13:19 +01:00 
		 
	
		
			
			
			
			
			
			2019-06-12 13:18:33 +02:00 
		 
	
		
			
			
			
			
			
			2020-03-12 16:01:37 +00:00 
		 
	
		
			
			
			
			
			
			2019-08-16 13:31:52 +02:00 
		 
	
		
			
			
			
			
			
			2019-08-16 13:31:52 +02:00 
		 
	
		
			
			
			
			
			
			2019-10-15 18:09:05 +01:00 
		 
	
		
			
			
			
			
			
			2020-01-07 17:24:29 +04:00 
		 
	
		
			
			
			
			
			
			2020-01-24 20:59:15 +01:00 
		 
	
		
			
			
			
			
			
			2020-01-24 20:59:15 +01:00 
		 
	
		
			
			
			
			
			
			2018-09-25 15:13:24 +01:00 
		 
	
		
			
			
			
			
			
			2017-02-28 17:10:00 +00:00 
		 
	
		
			
			
			
			
			
			2020-01-07 17:24:29 +04:00 
		 
	
		
			
			
			
			
			
			2019-08-16 13:31:52 +02:00 
		 
	
		
			
			
			
			
			
			2020-01-24 20:59:15 +01:00 
		 
	
		
			
			
			
			
			
			2019-12-17 19:33:49 +01:00 
		 
	
		
			
			
			
			
			
			2019-08-16 13:31:52 +02:00 
		 
	
		
			
			
			
			
			
			2019-08-16 13:31:52 +02:00 
		 
	
		
			
			
			
			
			
			2016-10-04 10:00:25 +02:00 
		 
	
		
			
			
			
			
			
			2019-08-16 13:31:52 +02:00 
		 
	
		
			
			
			
			
			
			2020-01-24 20:59:15 +01:00 
		 
	
		
			
			
			
			
			
			2020-01-07 12:08:39 +01:00 
		 
	
		
			
			
			
			
			
			2019-08-16 13:31:52 +02:00 
		 
	
		
			
			
			
			
			
			2019-08-19 21:28:25 +02:00 
		 
	
		
			
			
			
			
			
			2020-01-24 20:59:15 +01:00 
		 
	
		
			
			
			
			
			
			2019-08-16 13:31:52 +02:00 
		 
	
		
			
			
			
			
			
			2020-01-24 20:59:15 +01:00 
		 
	
		
			
			
			
			
			
			2020-01-24 20:59:15 +01:00 
		 
	
		
			
			
			
			
			
			2020-01-24 20:59:15 +01:00 
		 
	
		
			
			
			
			
			
			2020-01-24 20:59:15 +01:00 
		 
	
		
			
			
			
			
			
			2019-08-16 13:31:52 +02:00 
		 
	
		
			
			
			
			
			
			2019-03-12 14:33:04 +11:00 
		 
	
		
			
			
			
			
			
			2020-01-24 20:59:15 +01:00 
		 
	
		
			
			
			
			
			
			2019-08-16 13:31:52 +02:00 
		 
	
		
			
			
			
			
			
			2019-08-16 13:31:53 +02:00 
		 
	
		
			
			
			
			
			
			2020-01-27 12:13:09 +01:00 
		 
	
		
			
			
			
			
			
			2020-01-24 20:59:15 +01:00 
		 
	
		
			
			
			
			
			
			2019-08-16 13:31:52 +02:00 
		 
	
		
			
			
			
			
			
			2019-08-16 13:31:52 +02:00 
		 
	
		
			
			
			
			
			
			2020-01-08 11:01:59 +11:00 
		 
	
		
			
			
			
			
			
			2020-01-30 16:02:03 +00:00 
		 
	
		
			
			
			
			
			
			2019-10-04 19:08:22 +10:00 
		 
	
		
			
			
			
			
			
			2015-09-24 01:29:36 +01:00 
		 
	
		
			
			
			
			
			
			2019-12-17 10:39:48 +11:00 
		 
	
		
			
			
			
			
			
			2019-08-16 13:31:53 +02:00 
		 
	
		
			
			
			
			
			
			2019-12-17 10:39:48 +11:00 
		 
	
		
			
			
			
			
			
			2020-02-02 14:07:57 +11:00 
		 
	
		
			
			
			
			
			
			2020-01-24 20:59:15 +01:00 
		 
	
		
			
			
			
			
			
			2020-01-24 20:59:15 +01:00 
		 
	
		
			
			
			
			
			
			2020-01-24 20:59:15 +01:00 
		 
	
		
			
			
			
			
			
			2019-08-16 13:31:52 +02:00