Rob Herring bd16430777 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>
2014-03-18 19:36:13 +00:00
..
2014-03-17 16:31:46 +00:00
2014-03-13 15:33:04 +00:00
2014-03-13 15:33:04 +00:00
2013-12-24 18:02:18 +01:00
2014-02-03 14:04:00 +00:00
2014-02-14 16:22:32 +01:00
2014-02-14 16:22:31 +01:00
2014-03-18 19:36:13 +00:00
2014-03-15 13:54:18 +04:00
2014-02-14 16:22:31 +01:00
2014-03-12 20:13:02 +01:00
2014-03-05 03:06:46 +01:00
2014-03-15 13:54:18 +04:00
2014-03-13 21:27:54 +00:00
2014-03-17 22:01:19 +01:00
2013-09-03 12:31:07 -05:00
2013-08-22 19:10:27 +02:00