You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
qemu/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>
2 weeks ago
..
macio hw/ide/macio: switch from using qemu_allocate_irq() to qdev input GPIOs 5 months ago
a9scu.h Use OBJECT_DECLARE_SIMPLE_TYPE when possible 4 years ago
allwinner-a10-ccm.h hw/misc: Allwinner-A10 Clock Controller Module Emulation 2 years ago
allwinner-a10-dramc.h hw/misc: Allwinner A10 DRAM Controller Emulation 2 years ago
allwinner-cpucfg.h Use OBJECT_DECLARE_SIMPLE_TYPE when possible 4 years ago
allwinner-h3-ccu.h Use OBJECT_DECLARE_SIMPLE_TYPE when possible 4 years ago
allwinner-h3-dramc.h Use OBJECT_DECLARE_SIMPLE_TYPE when possible 4 years ago
allwinner-h3-sysctrl.h Use OBJECT_DECLARE_SIMPLE_TYPE when possible 4 years ago
allwinner-r40-ccu.h hw/arm/allwinner-r40: add Clock Control Unit 2 years ago
allwinner-r40-dramc.h hw/arm/allwinner-r40: add SDRAM controller device 2 years ago
allwinner-sid.h Use OBJECT_DECLARE_SIMPLE_TYPE when possible 4 years ago
allwinner-sramc.h hw: arm: allwinner-sramc: Add SRAM Controller support for R40 2 years ago
arm11scu.h Use OBJECT_DECLARE_SIMPLE_TYPE when possible 4 years ago
arm_integrator_debug.h arm: Update infocenter.arm.com URLs 4 years ago
armsse-cpu-pwrctrl.h hw/misc/sse-cpu-pwrctrl: Implement SSE-300 CPU<N>_PWRCTRL register block 4 years ago
armsse-cpuid.h hw/arm/mps2: Update old infocenter.arm.com URLs 4 years ago
armsse-mhu.h hw/arm/mps2: Update old infocenter.arm.com URLs 4 years ago
armv7m_ras.h arm: Move M-profile RAS register block into its own device 3 years ago
aspeed_hace.h hw/misc/aspeed_hace: Fix SG Accumulative hashing 1 month ago
aspeed_i3c.h hw/misc/aspeed_i3c.c: Introduce a dummy AST2600 I3C model. 3 years ago
aspeed_lpc.h Don't include headers already included by qemu/osdep.h 2 years ago
aspeed_peci.h hw/misc/aspeed: Add PECI controller 2 years ago
aspeed_sbc.h aspeed: sbc: Allow per-machine settings 2 years ago
aspeed_scu.h aspeed/scu: Add boot-from-eMMC HW strapping bit for AST2600 SoC 5 months ago
aspeed_sdmc.h aspeed/sdmc: Add AST2700 support 6 months ago
aspeed_sli.h aspeed/sli: Add AST2700 support 6 months ago
aspeed_xdma.h hw/misc/aspeed_xdma: Add AST2600 support 4 years ago
auxbus.h hw/i2c: spelling fixes 1 year ago
avr_power.h hw: Remove superfluous includes of hw/hw.h 4 years ago
bcm2835_cprman.h Clean up header guards that don't match their file name 3 years ago
bcm2835_cprman_internals.h Clean up header guards that don't match their file name 3 years ago
bcm2835_mbox.h Use OBJECT_DECLARE_SIMPLE_TYPE when possible 4 years ago
bcm2835_mbox_defs.h hw/arm/bcm283x: Correct the license text 5 years ago
bcm2835_mphi.h Use OBJECT_DECLARE_SIMPLE_TYPE when possible 4 years ago
bcm2835_powermgt.h hw/arm: Add basic power management to raspi. 3 years ago
bcm2835_property.h hw/misc: Implement mailbox properties for customer OTP and device specific private keys 5 months ago
bcm2835_rng.h Use OBJECT_DECLARE_SIMPLE_TYPE when possible 4 years ago
bcm2835_thermal.h Use OBJECT_DECLARE_SIMPLE_TYPE when possible 4 years ago
djmemc.h q800: add djMEMC memory controller 1 year ago
empty_slot.h hw/misc/empty_slot: Name the slots when created 5 years ago
grlib_ahb_apb_pnp.h hw: Replace anti-social QOM type names 4 years ago
imx6_ccm.h Use OBJECT_DECLARE_SIMPLE_TYPE when possible 4 years ago
imx6_src.h Use OBJECT_DECLARE_SIMPLE_TYPE when possible 4 years ago
imx6ul_ccm.h Use OBJECT_DECLARE_SIMPLE_TYPE when possible 4 years ago
imx7_ccm.h Use OBJECT_DECLARE_SIMPLE_TYPE when possible 4 years ago
imx7_gpr.h Use OBJECT_DECLARE_SIMPLE_TYPE when possible 4 years ago
imx7_snvs.h fsl-imx: add simple RTC emulation for i.MX6 and i.MX7 boards 12 months ago
imx7_src.h Add i.MX7 SRC device implementation 1 year ago
imx25_ccm.h Use OBJECT_DECLARE_SIMPLE_TYPE when possible 4 years ago
imx31_ccm.h Use OBJECT_DECLARE_SIMPLE_TYPE when possible 4 years ago
imx_ccm.h Use OBJECT_DECLARE_TYPE when possible 4 years ago
imx_rngc.h Use OBJECT_DECLARE_SIMPLE_TYPE when possible 4 years ago
iosb.h q800: add IOSB subsystem 1 year ago
iotkit-secctl.h hw/misc/iotkit-secctl.c: Implement SSE-300 PID register values 4 years ago
iotkit-sysctl.h hw/misc/iotkit-sysctl: Handle SSE-300 changes to PDCM_PD_*_SENSE registers 4 years ago
iotkit-sysinfo.h hw/misc/iotkit-sysinfo.c: Implement SYS_CONFIG1 and IIDR 4 years ago
ivshmem.h ivshmem: add check on protocol version in QEMU 9 years ago
lasi.h lasi: Add reset I/O ports for LASI audio and FDC 10 months ago
led.h hw/misc/led: Add yellow LED 4 years ago
mac_via.h mac_via: work around underflow in TimeDBRA timing loop in SETUPTIMEK 1 year ago
mchp_pfsoc_dmc.h include: Include headers where needed 2 years ago
mchp_pfsoc_ioscb.h include: Include headers where needed 2 years ago
mchp_pfsoc_sysreg.h include: Include headers where needed 2 years ago
mips_cmgcr.h hw/mips: Declare all length properties as unsigned 2 years ago
mips_cpc.h hw/mips: Fix Lesser GPL version number 4 years ago
mips_itu.h hw/misc/mips_itu: Remove MIPSITUState::saar field 10 months ago
mos6522.h hw/misc/mos6522: Fix bad class definition of the MOS6522 device 2 weeks ago
mps2-fpgaio.h hw/misc/mps2-fpgaio: Support AN547 DBGCTRL register 4 years ago
mps2-scc.h hw/misc/mps2-scc: Make changes needed for AN536 FPGA image 10 months ago
msf2-sysreg.h Use OBJECT_DECLARE_SIMPLE_TYPE when possible 4 years ago
npcm7xx_clk.h hw/arm/npcm7xx: Declare QOM macros using OBJECT_DECLARE_SIMPLE_TYPE() 2 years ago
npcm7xx_gcr.h hw/arm/npcm7xx: Declare QOM macros using OBJECT_DECLARE_SIMPLE_TYPE() 2 years ago
npcm7xx_mft.h hw/arm/npcm7xx: Declare QOM macros using OBJECT_DECLARE_SIMPLE_TYPE() 2 years ago
npcm7xx_pwm.h hw/arm/npcm7xx: Declare QOM macros using OBJECT_DECLARE_SIMPLE_TYPE() 2 years ago
npcm7xx_rng.h hw/arm/npcm7xx: Declare QOM macros using OBJECT_DECLARE_SIMPLE_TYPE() 2 years ago
nrf51_rng.h Use OBJECT_DECLARE_SIMPLE_TYPE when possible 4 years ago
pvpanic.h hw/misc/pvpanic: add support for normal shutdowns 5 months ago
sifive_e_aon.h hw/misc: sifive_e_aon: Support the watchdog timer of HiFive 1 rev b. 1 year ago
sifive_e_prci.h include: Include headers where needed 2 years ago
sifive_test.h sifive: Use DECLARE_*CHECKER* macros 4 years ago
sifive_u_otp.h include: Include headers where needed 2 years ago
sifive_u_prci.h include: Include headers where needed 2 years ago
stm32_rcc.h hw/misc/stm32_rcc: Implement RCC device for STM32F4 SoCs 2 months ago
stm32f2xx_syscfg.h hw/misc/stm32f2xx_syscfg: Remove extraneous IRQ 4 years ago
stm32f4xx_exti.h Clean up header guards that don't match their file name 3 years ago
stm32f4xx_syscfg.h Clean up header guards that don't match their file name 3 years ago
stm32l4x5_exti.h hw/misc: In STM32L4x5 EXTI, consolidate 2 constants 5 months ago
stm32l4x5_rcc.h hw/misc/stm32l4x5_rcc: Add an internal PLL Clock object 9 months ago
stm32l4x5_rcc_internals.h hw/misc/stm32l4x5_rcc: Initialize PLLs and clock multiplexers 9 months ago
stm32l4x5_syscfg.h hw/misc: Create STM32L4x5 SYSCFG clock 2 months ago
tz-mpc.h Use OBJECT_DECLARE_SIMPLE_TYPE when possible 4 years ago
tz-msc.h Use OBJECT_DECLARE_SIMPLE_TYPE when possible 4 years ago
tz-ppc.h Use OBJECT_DECLARE_SIMPLE_TYPE when possible 4 years ago
unimp.h Use OBJECT_DECLARE_SIMPLE_TYPE when possible 4 years ago
virt_ctrl.h include: Include headers where needed 2 years ago
vmcoreinfo.h qom: fix objects with improper parent type 4 years ago
xlnx-cfi-if.h Remove inclusion of hw/hw.h from files that don't need it 5 months ago
xlnx-versal-cframe-reg.h hw: Replace anti-social QOM type names (again) 12 months ago
xlnx-versal-cfu.h hw: Replace anti-social QOM type names (again) 12 months ago
xlnx-versal-crl.h hw/misc/xlnx-versal-crl: Include generic 'cpu-qom.h' instead of 'cpu.h' 10 months ago
xlnx-versal-pmc-iou-slcr.h hw/misc, hw/ssi: Fix some URLs for AMD / Xilinx models 1 year ago
xlnx-versal-trng.h hw/misc/xlnx-versal-trng: Call register_finalize_block 3 months ago
xlnx-versal-xramc.h hw/misc: versal: Add a model of the XRAM controller 4 years ago
xlnx-zynqmp-apu-ctrl.h hw/misc: Move some arm-related files from specific_ss into softmmu_ss 2 years ago
xlnx-zynqmp-crf.h hw/misc: Add a model of the Xilinx ZynqMP CRF 3 years ago