qemu-irix/hw/ide
Alistair Francis bb639f829f ahci.c: Don't assume AHCIState's parent is AHCIPCIState
The AHCIState struct can either have AHCIPCIState or SysbusAHCIState
as a parent. The ahci_irq_lower() and ahci_irq_raise() functions
assume that it is always AHCIPCIState, which is not always the
case, which causes a seg fault. Verify what the container of AHCIState
is before setting the PCIDevice struct.

Signed-off-by: Alistair Francis <alistair.francis@xilinx.com>
Acked-by: John Snow <jsnow@redhat.com>
Reviewed-by: Peter Crosthwaite <crosthwaite.peter@gmail.com>
Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
2015-09-08 17:38:45 +01:00
..
Makefile.objs
ahci.c ahci.c: Don't assume AHCIState's parent is AHCIPCIState 2015-09-08 17:38:45 +01:00
ahci.h ahci.c: Don't assume AHCIState's parent is AHCIPCIState 2015-09-08 17:38:45 +01:00
atapi.c ide/atapi: Fix START STOP UNIT command completion 2015-07-26 23:42:53 -04:00
cmd646.c
core.c ide: Clear DRQ after handling all expected accesses 2015-07-26 23:42:53 -04:00
ich.c
internal.h ahci: add rwerror=stop support for ncq 2015-07-04 02:06:04 -04:00
isa.c
macio.c macio: re-add TRIM support 2015-07-31 16:38:50 -04:00
microdrive.c
mmio.c
pci.c ide: add limit to .prepare_buf() 2015-07-04 02:06:04 -04:00
pci.h
piix.c Fix release_drive on unplugged devices (pci_piix3_xen_ide_unplug) 2015-08-03 14:27:12 +00:00
qdev.c
via.c