Xiaojuan Yang 
		056dac5384 
		
	 
	
	
	hw/intc/loongarch_pch_pic: Fix bugs for update_irq function ... 
			Fix such errors:
1. We should not use 'unsigned long' type as argument when we use
find_first_bit(), and we use ctz64() to replace find_first_bit()
to fix this bug.
2. It is not standard to use '1ULL << irq' to generate a irq mask.
So, we replace it with 'MAKE_64BIT_MASK(irq, 1)'.
Fix coverity CID: 1489761 1489764 1489765
Signed-off-by: Xiaojuan Yang <yangxiaojuan@loongson.cn>
Message-Id: <20220715060740.1500628-3-yangxiaojuan@loongson.cn>
Signed-off-by: Richard Henderson <richard.henderson@linaro.org> 
		
	 
		2022-07-19 21:53:58 +05:30 
	 
	
	
		 
	
	
		
	
		
			
			
			
			
			
			2021-05-02 17:24:51 +02:00 
		 
	
		
			
			
			
			
			
			2021-05-02 17:24:51 +02:00 
		 
	
		
	
		
			
			
			
			
			
			2021-05-02 17:24:51 +02:00 
		 
	
		
			
			
			
			
			
			2022-01-20 11:47:52 +00:00 
		 
	
		
			
			
			
			
			
			2020-11-15 16:42:14 +01:00 
		 
	
		
			
			
			
			
			
			2022-05-19 16:19:02 +01:00 
		 
	
		
			
			
			
			
			
			2021-12-15 10:11:34 +00:00 
		 
	
		
			
			
			
			
			
			2022-06-08 19:38:47 +01:00 
		 
	
		
			
			
			
			
			
			2022-06-08 19:38:47 +01:00 
		 
	
		
			
			
			
			
			
			2021-11-22 18:17:19 +00:00 
		 
	
		
			
			
			
			
			
			2022-04-22 09:24:44 +01:00 
		 
	
		
			
			
			
			
			
			2022-04-22 14:44:53 +01:00 
		 
	
		
			
			
			
			
			
			2022-05-19 16:19:02 +01:00 
		 
	
		
			
			
			
			
			
			2022-06-08 19:38:47 +01:00 
		 
	
		
			
			
			
			
			
			2022-03-07 13:16:50 +00:00 
		 
	
		
			
			
			
			
			
			2022-07-18 13:20:09 +01:00 
		 
	
		
	
		
			
			
			
			
			
			2022-02-21 13:30:20 +00:00 
		 
	
		
			
			
			
			
			
			2022-02-21 13:30:20 +00:00 
		 
	
		
			
			
			
			
			
			2021-03-19 15:18:43 +01:00 
		 
	
		
			
			
			
			
			
			2022-04-21 11:37:04 +01:00 
		 
	
		
			
			
			
			
			
			2022-04-21 09:27:54 -07:00 
		 
	
		
	
		
			
			
			
			
			
			2022-04-22 14:44:53 +01:00 
		 
	
		
			
			
			
			
			
			2021-11-09 10:11:27 +01:00 
		 
	
		
			
			
			
			
			
			2021-05-02 17:24:51 +02:00 
		 
	
		
	
		
			
			
			
			
			
			2022-01-27 12:08:50 +01:00 
		 
	
		
			
			
			
			
			
			2021-03-19 08:48:18 -04:00 
		 
	
		
	
		
			
			
			
			
			
			2021-05-02 17:24:50 +02:00 
		 
	
		
	
		
			
			
			
			
			
			2022-01-27 12:08:50 +01:00 
		 
	
		
			
			
			
			
			
			2021-01-08 15:13:38 +00:00 
		 
	
		
			
			
			
			
			
			2022-06-06 18:12:30 +00:00 
		 
	
		
			
			
			
			
			
			2022-06-06 18:12:30 +00:00 
		 
	
		
			
			
			
			
			
			2022-07-05 16:25:17 +05:30 
		 
	
		
			
			
			
			
			
			2022-07-04 11:08:58 +05:30 
		 
	
		
			
			
			
			
			
			2022-07-19 21:53:58 +05:30 
		 
	
		
			
			
			
			
			
			2021-02-21 18:41:46 +01:00 
		 
	
		
			
			
			
			
			
			2021-11-09 10:11:27 +01:00 
		 
	
		
			
			
			
			
			
			2022-06-06 18:12:30 +00:00 
		 
	
		
	
		
			
			
			
			
			
			2022-04-26 08:17:05 -07:00 
		 
	
		
			
			
			
			
			
			2020-09-09 13:20:22 -04:00 
		 
	
		
			
			
			
			
			
			2021-05-02 17:24:50 +02:00 
		 
	
		
			
			
			
			
			
			2021-09-30 15:30:24 +02:00 
		 
	
		
			
			
			
			
			
			2022-06-28 11:06:02 +02:00 
		 
	
		
			
			
			
			
			
			2020-09-18 14:12:32 -04:00 
		 
	
		
			
			
			
			
			
			2022-03-02 06:51:39 +01:00 
		 
	
		
			
			
			
			
			
			2022-07-06 10:22:38 -03:00 
		 
	
		
	
		
			
			
			
			
			
			2022-07-06 10:22:38 -03:00 
		 
	
		
			
			
			
			
			
			2021-06-05 21:10:42 +02:00 
		 
	
		
	
		
			
			
			
			
			
			2022-06-08 19:38:47 +01:00 
		 
	
		
			
			
			
			
			
			2022-06-08 19:38:47 +01:00 
		 
	
		
			
			
			
			
			
			2022-03-03 13:14:50 +10:00 
		 
	
		
			
			
			
			
			
			2020-11-23 10:41:58 +00:00 
		 
	
		
			
			
			
			
			
			2022-04-06 10:50:38 +02:00 
		 
	
		
			
			
			
			
			
			2021-05-02 17:24:51 +02:00 
		 
	
		
			
			
			
			
			
			2021-10-30 18:39:37 +02:00 
		 
	
		
			
			
			
			
			
			2022-06-10 09:31:42 +10:00 
		 
	
		
			
			
			
			
			
			2020-09-18 14:12:32 -04:00 
		 
	
		
			
			
			
			
			
			2021-10-21 11:42:47 +11:00 
		 
	
		
			
			
			
			
			
			2022-03-02 06:51:39 +01:00 
		 
	
		
			
			
			
			
			
			2022-06-06 18:12:30 +00: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 
		 
	
		
			
			
			
			
			
			2022-07-18 13:59:43 -03:00 
		 
	
		
			
			
			
			
			
			2020-09-09 09:27:09 -04:00 
		 
	
		
			
			
			
			
			
			2022-05-05 15:36:17 -03:00 
		 
	
		
			
			
			
			
			
			2022-07-18 13:59:43 -03:00