qemu-cr16/include/hw/misc
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
..
macio hw/ide/macio: switch from using qemu_allocate_irq() to qdev input GPIOs 2024-07-02 06:58:48 +02:00
a9scu.h
allwinner-a10-ccm.h
allwinner-a10-dramc.h
allwinner-cpucfg.h
allwinner-h3-ccu.h
allwinner-h3-dramc.h
allwinner-h3-sysctrl.h
allwinner-r40-ccu.h
allwinner-r40-dramc.h
allwinner-sid.h
allwinner-sramc.h
arm11scu.h
arm_integrator_debug.h
armsse-cpu-pwrctrl.h
armsse-cpuid.h
armsse-mhu.h
armv7m_ras.h
aspeed_hace.h hw/misc/aspeed_hace: Fix SG Accumulative hashing 2024-10-24 07:57:47 +02:00
aspeed_i3c.h
aspeed_lpc.h
aspeed_peci.h
aspeed_sbc.h
aspeed_scu.h aspeed/scu: Add boot-from-eMMC HW strapping bit for AST2600 SoC 2024-07-21 07:46:38 +02:00
aspeed_sdmc.h aspeed/sdmc: Add AST2700 support 2024-06-16 21:08:54 +02:00
aspeed_sli.h aspeed/sli: Add AST2700 support 2024-06-16 21:08:54 +02:00
aspeed_xdma.h
auxbus.h
avr_power.h
bcm2835_cprman.h
bcm2835_cprman_internals.h
bcm2835_mbox.h
bcm2835_mbox_defs.h
bcm2835_mphi.h
bcm2835_powermgt.h
bcm2835_property.h hw/misc: Implement mailbox properties for customer OTP and device specific private keys 2024-07-01 12:48:55 +01:00
bcm2835_rng.h
bcm2835_thermal.h
djmemc.h
empty_slot.h
grlib_ahb_apb_pnp.h
imx6_ccm.h
imx6_src.h
imx6ul_ccm.h
imx7_ccm.h
imx7_gpr.h
imx7_snvs.h
imx7_src.h
imx25_ccm.h
imx31_ccm.h
imx_ccm.h
imx_rngc.h
iosb.h
iotkit-secctl.h
iotkit-sysctl.h
iotkit-sysinfo.h
ivshmem.h
lasi.h
led.h
mac_via.h
mchp_pfsoc_dmc.h
mchp_pfsoc_ioscb.h
mchp_pfsoc_sysreg.h
mips_cmgcr.h
mips_cpc.h
mips_itu.h
mos6522.h hw/misc/mos6522: Fix bad class definition of the MOS6522 device 2024-11-18 13:45:45 +01:00
mps2-fpgaio.h
mps2-scc.h
msf2-sysreg.h
npcm7xx_clk.h
npcm7xx_gcr.h
npcm7xx_mft.h
npcm7xx_pwm.h
npcm7xx_rng.h
nrf51_rng.h
pvpanic.h hw/misc/pvpanic: add support for normal shutdowns 2024-07-01 17:16:04 -04:00
sifive_e_aon.h
sifive_e_prci.h
sifive_test.h
sifive_u_otp.h
sifive_u_prci.h
stm32_rcc.h hw/misc/stm32_rcc: Implement RCC device for STM32F4 SoCs 2024-10-15 11:29:45 +01:00
stm32f2xx_syscfg.h
stm32f4xx_exti.h
stm32f4xx_syscfg.h
stm32l4x5_exti.h hw/misc: In STM32L4x5 EXTI, consolidate 2 constants 2024-07-11 11:41:34 +01:00
stm32l4x5_rcc.h
stm32l4x5_rcc_internals.h hw/misc/stm32l4x5_rcc: Initialize PLLs and clock multiplexers 2024-03-05 13:22:56 +00:00
stm32l4x5_syscfg.h hw/misc: Create STM32L4x5 SYSCFG clock 2024-10-15 11:29:45 +01:00
tz-mpc.h
tz-msc.h
tz-ppc.h
unimp.h
virt_ctrl.h
vmcoreinfo.h
xlnx-cfi-if.h Remove inclusion of hw/hw.h from files that don't need it 2024-07-02 06:58:48 +02:00
xlnx-versal-cframe-reg.h
xlnx-versal-cfu.h
xlnx-versal-crl.h
xlnx-versal-pmc-iou-slcr.h
xlnx-versal-trng.h hw/misc/xlnx-versal-trng: Call register_finalize_block 2024-09-05 13:12:36 +01:00
xlnx-versal-xramc.h
xlnx-zynqmp-apu-ctrl.h
xlnx-zynqmp-crf.h