Thomas Huth 
		c3d7c18b0d 
		
	 
	
	
	hw/misc/mos6522: Fix bad class definition of the MOS6522 device ... 
			When compiling QEMU with --enable-cfi, the "q800" m68k machine
currently crashes very early, when the q800_machine_init() function
tries to wire the interrupts of the "via1" device.
This happens because TYPE_MOS6522_Q800_VIA1 is supposed to be a
proper SysBus device, but its parent (TYPE_MOS6522) has a mistake
in its class definition where it is only derived from DeviceClass,
and not from SysBusDeviceClass, so we end up in funny memory access
issues here. Using the right class hierarchy for the MOS6522 device
fixes the problem.
Resolves: https://gitlab.com/qemu-project/qemu/-/issues/2675 
Signed-off-by: Thomas Huth <thuth@redhat.com>
Fixes: 51f233ec92 ("misc: introduce new mos6522 VIA device")
Reviewed-by: Philippe Mathieu-Daudé <philmd@linaro.org>
Reviewed-by: Mark Cave-Ayland <mark.cave-ayland@ilande.co.uk>
Message-ID: <20241114104653.963812-1-thuth@redhat.com>
Signed-off-by: Philippe Mathieu-Daudé <philmd@linaro.org> 
		
	 
		2024-11-18 13:45:45 +01:00 
	 
	
	
		 
	
	
		
			
			
			
			
			
			2024-07-02 06:58:48 +02:00 
		 
	
		
			
			
			
			
			
			2020-09-18 14:12:32 -04:00 
		 
	
		
			
			
			
			
			
			2023-01-12 16:50:19 +00:00 
		 
	
		
			
			
			
			
			
			2023-01-12 16:50:19 +00:00 
		 
	
		
			
			
			
			
			
			2020-09-18 14:12:32 -04:00 
		 
	
		
			
			
			
			
			
			2020-09-18 14:12:32 -04:00 
		 
	
		
			
			
			
			
			
			2020-09-18 14:12:32 -04:00 
		 
	
		
			
			
			
			
			
			2020-09-18 14:12:32 -04:00 
		 
	
		
			
			
			
			
			
			2023-06-06 10:19:31 +01:00 
		 
	
		
			
			
			
			
			
			2023-06-06 10:19:32 +01:00 
		 
	
		
			
			
			
			
			
			2020-09-18 14:12:32 -04:00 
		 
	
		
			
			
			
			
			
			2023-06-06 10:19:33 +01:00 
		 
	
		
			
			
			
			
			
			2020-09-18 14:12:32 -04:00 
		 
	
		
			
			
			
			
			
			2021-02-11 11:50:14 +00:00 
		 
	
		
			
			
			
			
			
			2021-03-08 17:20:02 +00:00 
		 
	
		
			
			
			
			
			
			2021-03-08 11:54:16 +00:00 
		 
	
		
			
			
			
			
			
			2021-03-08 11:54:16 +00:00 
		 
	
		
			
			
			
			
			
			2021-09-01 11:08:18 +01:00 
		 
	
		
			
			
			
			
			
			2024-10-24 07:57:47 +02:00 
		 
	
		
			
			
			
			
			
			2022-01-20 11:47:53 +00:00 
		 
	
		
			
			
			
			
			
			2023-02-08 07:28:05 +01:00 
		 
	
		
			
			
			
			
			
			2022-06-30 09:21:14 +02:00 
		 
	
		
			
			
			
			
			
			2022-07-14 16:24:38 +02:00 
		 
	
		
			
			
			
			
			
			2024-07-21 07:46:38 +02:00 
		 
	
		
			
			
			
			
			
			2024-06-16 21:08:54 +02:00 
		 
	
		
			
			
			
			
			
			2024-06-16 21:08:54 +02:00 
		 
	
		
			
			
			
			
			
			2021-05-01 10:03:52 +02:00 
		 
	
		
			
			
			
			
			
			2023-08-31 19:47:43 +02:00 
		 
	
		
			
			
			
			
			
			2021-05-02 17:24:50 +02:00 
		 
	
		
			
			
			
			
			
			2022-05-11 16:49:06 +02:00 
		 
	
		
			
			
			
			
			
			2022-05-11 16:49:06 +02:00 
		 
	
		
			
			
			
			
			
			2020-03-23 17:22:30 +00:00 
		 
	
		
			
			
			
			
			
			2020-09-18 14:12:32 -04:00 
		 
	
		
			
			
			
			
			
			2020-09-18 14:12:32 -04:00 
		 
	
		
			
			
			
			
			
			2021-07-02 11:48:36 +01:00 
		 
	
		
			
			
			
			
			
			2024-07-01 12:48:55 +01:00 
		 
	
		
			
			
			
			
			
			2020-09-18 14:12:32 -04:00 
		 
	
		
			
			
			
			
			
			2020-09-18 14:12:32 -04:00 
		 
	
		
			
			
			
			
			
			2023-10-06 10:33:43 +02:00 
		 
	
		
			
			
			
			
			
			2020-06-09 06:59:44 +02:00 
		 
	
		
			
			
			
			
			
			2021-03-19 15:18:43 +01:00 
		 
	
		
			
			
			
			
			
			2020-09-18 14:12:32 -04:00 
		 
	
		
			
			
			
			
			
			2020-09-18 14:12:32 -04:00 
		 
	
		
			
			
			
			
			
			2020-09-18 14:12:32 -04:00 
		 
	
		
			
			
			
			
			
			2020-09-18 14:12:32 -04:00 
		 
	
		
			
			
			
			
			
			2020-09-18 14:12:32 -04:00 
		 
	
		
			
			
			
			
			
			2023-12-19 18:03:32 +00:00 
		 
	
		
			
			
			
			
			
			2023-08-31 09:45:17 +01:00 
		 
	
		
			
			
			
			
			
			2020-09-18 14:12:32 -04:00 
		 
	
		
			
			
			
			
			
			2020-09-18 14:12:32 -04:00 
		 
	
		
			
			
			
			
			
			2020-09-18 14:12:32 -04:00 
		 
	
		
			
			
			
			
			
			2020-09-18 14:12:32 -04:00 
		 
	
		
			
			
			
			
			
			2023-10-06 10:33:43 +02:00 
		 
	
		
			
			
			
			
			
			2021-03-08 17:20:01 +00:00 
		 
	
		
			
			
			
			
			
			2021-03-08 17:20:02 +00:00 
		 
	
		
			
			
			
			
			
			2021-03-08 17:20:01 +00:00 
		 
	
		
			
			
			
			
			
			2015-10-24 18:03:18 +02:00 
		 
	
		
			
			
			
			
			
			2024-02-11 13:20:23 +01:00 
		 
	
		
			
			
			
			
			
			2021-03-15 00:39:30 +01:00 
		 
	
		
			
			
			
			
			
			2023-10-06 10:33:43 +02:00 
		 
	
		
			
			
			
			
			
			2023-01-08 01:54:22 -05:00 
		 
	
		
			
			
			
			
			
			2023-01-08 01:54:22 -05:00 
		 
	
		
			
			
			
			
			
			2023-01-08 01:54:22 -05:00 
		 
	
		
			
			
			
			
			
			2023-03-08 00:37:48 +01:00 
		 
	
		
			
			
			
			
			
			2020-11-03 16:51:13 +01:00 
		 
	
		
			
			
			
			
			
			2024-02-15 15:53:12 +01:00 
		 
	
		
			
			
			
			
			
			2024-11-18 13:45:45 +01:00 
		 
	
		
			
			
			
			
			
			2021-03-08 17:20:03 +00:00 
		 
	
		
			
			
			
			
			
			2024-02-15 14:32:38 +00:00 
		 
	
		
			
			
			
			
			
			2020-09-18 14:12:32 -04:00 
		 
	
		
			
			
			
			
			
			2023-01-12 17:15:09 +00:00 
		 
	
		
			
			
			
			
			
			2023-01-12 17:15:09 +00:00 
		 
	
		
			
			
			
			
			
			2023-01-12 17:15:09 +00:00 
		 
	
		
			
			
			
			
			
			2023-01-12 17:15:09 +00:00 
		 
	
		
			
			
			
			
			
			2023-01-12 17:15:09 +00:00 
		 
	
		
			
			
			
			
			
			2020-09-18 14:12:32 -04:00 
		 
	
		
			
			
			
			
			
			2024-07-01 17:16:04 -04:00 
		 
	
		
			
			
			
			
			
			2023-07-10 22:29:14 +10:00 
		 
	
		
			
			
			
			
			
			2023-01-08 01:54:22 -05:00 
		 
	
		
			
			
			
			
			
			2020-09-18 13:49:48 -04:00 
		 
	
		
			
			
			
			
			
			2023-01-08 01:54:22 -05:00 
		 
	
		
			
			
			
			
			
			2023-01-08 01:54:22 -05:00 
		 
	
		
			
			
			
			
			
			2024-10-15 11:29:45 +01:00 
		 
	
		
			
			
			
			
			
			2020-11-10 11:03:48 +00:00 
		 
	
		
			
			
			
			
			
			2022-05-11 16:49:06 +02:00 
		 
	
		
			
			
			
			
			
			2022-05-11 16:49:06 +02:00 
		 
	
		
			
			
			
			
			
			2024-07-11 11:41:34 +01:00 
		 
	
		
			
			
			
			
			
			2024-03-05 13:22:56 +00:00 
		 
	
		
			
			
			
			
			
			2024-03-05 13:22:56 +00:00 
		 
	
		
			
			
			
			
			
			2024-10-15 11:29:45 +01:00 
		 
	
		
			
			
			
			
			
			2020-09-18 14:12:32 -04:00 
		 
	
		
			
			
			
			
			
			2020-09-18 14:12:32 -04:00 
		 
	
		
			
			
			
			
			
			2020-09-18 14:12:32 -04:00 
		 
	
		
			
			
			
			
			
			2020-09-18 14:12:32 -04:00 
		 
	
		
			
			
			
			
			
			2023-01-08 01:54:22 -05:00 
		 
	
		
			
			
			
			
			
			2020-10-12 11:50:22 -04:00 
		 
	
		
			
			
			
			
			
			2024-07-02 06:58:48 +02:00 
		 
	
		
			
			
			
			
			
			2023-12-20 10:29:23 +01:00 
		 
	
		
			
			
			
			
			
			2023-12-20 10:29:23 +01:00 
		 
	
		
			
			
			
			
			
			2024-01-26 11:30:48 +00:00 
		 
	
		
			
			
			
			
			
			2023-11-27 15:38:43 +00:00 
		 
	
		
			
			
			
			
			
			2024-09-05 13:12:36 +01:00 
		 
	
		
			
			
			
			
			
			2021-03-12 12:40:09 +00:00 
		 
	
		
			
			
			
			
			
			2022-12-15 17:37:47 +00:00 
		 
	
		
			
			
			
			
			
			2022-03-18 11:31:20 +00:00