Frank Chang 
		078189b327 
		
	 
	
	
	hw/intc: Update APLIC IDC after claiming iforce register ... 
			Currently, QEMU only sets the iforce register to 0 and returns early
when claiming the iforce register. However, this may leave mip.meip
remains at 1 if a spurious external interrupt triggered by iforce
register is the only pending interrupt to be claimed, and the interrupt
cannot be lowered as expected.
This commit fixes this issue by calling riscv_aplic_idc_update() to
update the IDC status after the iforce register is claimed.
Signed-off-by: Frank Chang <frank.chang@sifive.com>
Reviewed-by: Jim Shu <jim.shu@sifive.com>
Reviewed-by: Alistair Francis <alistair.francis@wdc.com>
Message-ID: <20240321104951.12104-1-frank.chang@sifive.com>
Signed-off-by: Alistair Francis <alistair.francis@wdc.com> 
		
	 
		2024-03-22 15:29:44 +10:00 
	 
	
	
		 
	
	
		
			
			
			
			
			
			2023-12-29 11:17:30 +11:00 
		 
	
		
			
			
			
			
			
			2024-02-14 06:09:32 -05:00 
		 
	
		
			
			
			
			
			
			2024-03-09 18:51:45 +01:00 
		 
	
		
			
			
			
			
			
			2023-12-29 11:17:30 +11:00 
		 
	
		
			
			
			
			
			
			2023-10-20 08:51:41 +02:00 
		 
	
		
			
			
			
			
			
			2023-07-25 17:13:53 +03:00 
		 
	
		
			
			
			
			
			
			2020-11-15 16:42:14 +01:00 
		 
	
		
			
			
			
			
			
			2023-12-29 11:17:30 +11:00 
		 
	
		
			
			
			
			
			
			2021-12-15 10:11:34 +00:00 
		 
	
		
			
			
			
			
			
			2024-01-09 14:44:45 +00:00 
		 
	
		
			
			
			
			
			
			2023-01-18 11:14:34 +01:00 
		 
	
		
			
			
			
			
			
			2023-12-29 11:17:30 +11:00 
		 
	
		
			
			
			
			
			
			2023-12-19 17:57:44 +00:00 
		 
	
		
			
			
			
			
			
			2023-09-29 10:07:18 +02:00 
		 
	
		
			
			
			
			
			
			2023-10-20 08:51:41 +02:00 
		 
	
		
			
			
			
			
			
			2023-07-25 17:13:53 +03:00 
		 
	
		
			
			
			
			
			
			2022-03-07 13:16:50 +00:00 
		 
	
		
			
			
			
			
			
			2024-01-09 14:42:40 +00:00 
		 
	
		
			
			
			
			
			
			2023-12-29 11:17:30 +11:00 
		 
	
		
			
			
			
			
			
			2023-12-29 11:17:30 +11:00 
		 
	
		
			
			
			
			
			
			2023-12-29 11:17:30 +11:00 
		 
	
		
			
			
			
			
			
			2021-03-19 15:18:43 +01:00 
		 
	
		
			
			
			
			
			
			2023-12-29 11:17:30 +11:00 
		 
	
		
			
			
			
			
			
			2022-04-21 09:27:54 -07:00 
		 
	
		
			
			
			
			
			
			2018-09-25 15:13:24 +01:00 
		 
	
		
			
			
			
			
			
			2022-04-22 14:44:53 +01:00 
		 
	
		
			
			
			
			
			
			2023-12-29 11:17:30 +11:00 
		 
	
		
			
			
			
			
			
			2024-03-09 19:17:01 +01:00 
		 
	
		
			
			
			
			
			
			2023-12-29 11:17:30 +11:00 
		 
	
		
			
			
			
			
			
			2023-12-29 11:17:30 +11:00 
		 
	
		
			
			
			
			
			
			2023-03-08 00:37:48 +01:00 
		 
	
		
			
			
			
			
			
			2023-12-29 11:17:30 +11:00 
		 
	
		
			
			
			
			
			
			2023-12-29 11:17:30 +11:00 
		 
	
		
			
			
			
			
			
			2016-10-04 10:00:25 +02:00 
		 
	
		
			
			
			
			
			
			2024-03-12 11:45:33 +01:00 
		 
	
		
			
			
			
			
			
			2023-02-27 22:29:01 +01:00 
		 
	
		
			
			
			
			
			
			2023-03-15 11:52:25 +01:00 
		 
	
		
			
			
			
			
			
			2024-03-01 08:27:33 +01:00 
		 
	
		
			
			
			
			
			
			2023-01-13 16:22:57 +01:00 
		 
	
		
			
			
			
			
			
			2024-03-20 10:19:57 +08:00 
		 
	
		
			
			
			
			
			
			2024-01-11 19:22:47 +08:00 
		 
	
		
			
			
			
			
			
			2023-01-06 10:54:20 +08:00 
		 
	
		
			
			
			
			
			
			2023-12-29 11:17:30 +11:00 
		 
	
		
			
			
			
			
			
			2023-09-21 11:31:16 +03:00 
		 
	
		
			
			
			
			
			
			2023-12-29 11:17:30 +11:00 
		 
	
		
			
			
			
			
			
			2023-06-20 10:01:30 +02:00 
		 
	
		
			
			
			
			
			
			2023-10-04 11:03:54 -07:00 
		 
	
		
			
			
			
			
			
			2023-12-29 11:17:30 +11:00 
		 
	
		
			
			
			
			
			
			2023-09-21 11:31:16 +03:00 
		 
	
		
			
			
			
			
			
			2023-12-29 11:17:30 +11:00 
		 
	
		
			
			
			
			
			
			2021-09-30 15:30:24 +02:00 
		 
	
		
			
			
			
			
			
			2023-12-29 11:17:30 +11:00 
		 
	
		
			
			
			
			
			
			2023-12-29 11:17:30 +11:00 
		 
	
		
			
			
			
			
			
			2023-06-10 10:19:24 -03:00 
		 
	
		
			
			
			
			
			
			2023-09-06 11:19:33 +02:00 
		 
	
		
			
			
			
			
			
			2023-09-06 11:19:33 +02:00 
		 
	
		
			
			
			
			
			
			2023-09-21 11:31:16 +03:00 
		 
	
		
			
			
			
			
			
			2023-12-29 11:17:30 +11:00 
		 
	
		
			
			
			
			
			
			2020-07-10 15:18:08 +02:00 
		 
	
		
			
			
			
			
			
			2023-12-29 11:17:30 +11:00 
		 
	
		
			
			
			
			
			
			2024-03-22 15:29:44 +10:00 
		 
	
		
			
			
			
			
			
			2023-12-29 11:17:30 +11:00 
		 
	
		
			
			
			
			
			
			2023-12-29 11:17:30 +11:00 
		 
	
		
			
			
			
			
			
			2024-02-13 10:59:25 +03:00 
		 
	
		
			
			
			
			
			
			2024-01-08 10:45:43 -05:00 
		 
	
		
			
			
			
			
			
			2021-10-30 18:39:37 +02:00 
		 
	
		
			
			
			
			
			
			2023-12-29 11:17:30 +11:00 
		 
	
		
			
			
			
			
			
			2023-12-29 11:17:30 +11:00 
		 
	
		
			
			
			
			
			
			2023-09-21 11:31:16 +03:00 
		 
	
		
			
			
			
			
			
			2023-12-29 11:17:30 +11:00 
		 
	
		
			
			
			
			
			
			2024-02-14 06:09:32 -05:00 
		 
	
		
			
			
			
			
			
			2020-08-21 06:18:24 -04:00 
		 
	
		
			
			
			
			
			
			2015-09-24 01:29:36 +01:00 
		 
	
		
			
			
			
			
			
			2022-04-06 14:31:55 +02:00 
		 
	
		
			
			
			
			
			
			2020-11-15 16:38:24 +01:00 
		 
	
		
			
			
			
			
			
			2021-05-02 17:24:51 +02:00 
		 
	
		
			
			
			
			
			
			2024-01-30 21:20:20 +03:00 
		 
	
		
			
			
			
			
			
			2023-01-12 17:15:09 +00:00 
		 
	
		
			
			
			
			
			
			2023-09-21 11:31:16 +03:00 
		 
	
		
			
			
			
			
			
			2023-12-29 11:17:30 +11:00 
		 
	
		
			
			
			
			
			
			2023-12-29 11:17:30 +11:00 
		 
	
		
			
			
			
			
			
			2023-12-29 11:17:30 +11:00