qemu-e2k/hw/ssi
Alistair Francis d53ead7206 hw/ssi: ibex_spi_host: Clear the interrupt even if disabled
We currently don't clear the interrupts if they are disabled. This means
that if an interrupt occurs and the guest disables interrupts the QEMU
IRQ will remain high.

This doesn't immediately affect guests, but if the
guest re-enables interrupts it's possible that we will miss an
interrupt as it always remains set.

Let's update the logic to always call qemu_set_irq() even if the
interrupts are disabled to ensure we set the level low. The level will
never be high unless interrupts are enabled, so we won't generate
interrupts when we shouldn't.

Signed-off-by: Alistair Francis <alistair.francis@wdc.com>
Reviewed-by: Daniel Henrique Barboza <dbarboza@ventanamicro.com>
Message-ID: <20231102003424.2003428-2-alistair.francis@wdc.com>
Signed-off-by: Alistair Francis <alistair.francis@wdc.com>
2023-11-07 11:06:02 +10:00
..
aspeed_smc.c aspeed/smc: Wire CS lines at reset 2023-09-01 11:40:04 +02:00
ibex_spi_host.c hw/ssi: ibex_spi_host: Clear the interrupt even if disabled 2023-11-07 11:06:02 +10:00
imx_spi.c
Kconfig
meson.build meson: Replace softmmu_ss -> system_ss 2023-06-20 10:01:30 +02:00
mss-spi.c
npcm7xx_fiu.c
npcm_pspi.c hw/ssi: Add Nuvoton PSPI Module 2023-02-16 16:00:48 +00:00
omap_spi.c hw/arm/omap: Drop useless casts from void * to pointer 2023-01-12 17:15:09 +00:00
pl022.c
sifive_spi.c hw/ssi/sifive_spi.c: spelling: reigster 2023-01-17 10:02:37 +01:00
ssi.c hw/ssi: Check for duplicate CS indexes 2023-09-01 11:40:04 +02:00
stm32f2xx_spi.c
trace-events hw/ssi: Add Nuvoton PSPI Module 2023-02-16 16:00:48 +00:00
trace.h
xilinx_spi.c hw/ssi: Fix Linux driver init issue with xilinx_spi 2023-04-03 16:12:30 +01:00
xilinx_spips.c hw/other: spelling fixes 2023-09-21 11:31:16 +03:00
xlnx-versal-ospi.c hw/other: spelling fixes 2023-09-21 11:31:16 +03:00