diff options
| author | Rob Herring <rob.herring@linaro.org> | 2014-03-18 19:36:13 +0000 |
|---|---|---|
| committer | Peter Maydell <peter.maydell@linaro.org> | 2014-03-18 19:36:13 +0000 |
| commit | bd16430777cc3d25930e479fdbe290d92cec0888 (patch) | |
| tree | 2225312457fded6f2ae78fc0d9949495a716b963 /hw/pci-host/prep.c | |
| parent | 059b3527f0229f4d60fd77a317503d42abd5e50f (diff) | |
| download | focaccia-qemu-bd16430777cc3d25930e479fdbe290d92cec0888.tar.gz focaccia-qemu-bd16430777cc3d25930e479fdbe290d92cec0888.zip | |
ahci: fix sysbus support
Non-PCI AHCI support is broken due to assertion failures when trying to convert AHCIState to a PCIDevice pointer as AHCIState can have different container structs. Fix this by using the non-asserting object cast and checking the returned pointer is not NULL. The AddressSpace pointer is also being initialized to NULL and causing dma_memory_map call to fail. Fix this by initializing to address_space_memory for sysbus instances. Also correct AHCI_VMSTATE to use the correct container SysbusAHCIState for sysbus instances. Signed-off-by: Rob Herring <rob.herring@linaro.org> Message-id: 1392073373-3295-1-git-send-email-robherring2@gmail.com [PMM: added linebreaks to fix overlong lines] Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
Diffstat (limited to 'hw/pci-host/prep.c')
0 files changed, 0 insertions, 0 deletions