Anup Patel 
		0678e9f29c 
		
	 
	
	
	hw/intc/riscv_aplic: Fix in_clrip[x] read emulation ... 
			The reads to in_clrip[x] registers return rectified input values of the
interrupt sources.
A rectified input value of an interrupt source is defined by the section
"4.5.2 Source configurations (sourcecfg[1]–sourcecfg[1023])" of the RISC-V
AIA specification as:
"rectified input value = (incoming wire value) XOR (source is inverted)"
Update the riscv_aplic_read_input_word() implementation to match the above.
Fixes: e8f79343cfc8 ("hw/intc: Add RISC-V AIA APLIC device emulation")
Signed-off-by: Anup Patel <apatel@ventanamicro.com>
Reviewed-by: Daniel Henrique Barboza <dbarboza@ventanamicro.com>
Message-ID: <20240306095722.463296-3-apatel@ventanamicro.com>
Signed-off-by: Alistair Francis <alistair.francis@wdc.com> 
		
	 
		2024-03-08 20:48:03 +10:00 
	 
	
	
		 
	
	
		
			
			
			
			
			
			2023-12-29 11:17:30 +11:00 
		 
	
		
			
			
			
			
			
			2024-02-14 06:09:32 -05:00 
		 
	
		
			
			
			
			
			
			2024-02-14 06:09:32 -05: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-02-15 16:58:46 +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 
		 
	
		
			
			
			
			
			
			2023-12-29 11:17:30 +11: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-01-11 19:22:47 +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-08 20:48:03 +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