mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-01 23:03:54 -06:00
sdhci: fix the PCI device, using the PCI address space for DMA
While SysBus devices can use the get_system_memory() address space, PCI devices should use the bus master address space for DMA. Suggested-by: Peter Maydell <peter.maydell@linaro.org> Signed-off-by: Philippe Mathieu-Daudé <f4bug@amsat.org> Reviewed-by: Peter Maydell <peter.maydell@linaro.org> Message-id: 20180115182436.2066-14-f4bug@amsat.org Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
This commit is contained in:
parent
5d2c0464fa
commit
dd55c485ec
2 changed files with 16 additions and 14 deletions
|
@ -41,6 +41,7 @@ typedef struct SDHCIState {
|
|||
/*< public >*/
|
||||
SDBus sdbus;
|
||||
MemoryRegion iomem;
|
||||
AddressSpace *dma_as;
|
||||
|
||||
QEMUTimer *insert_timer; /* timer for 'changing' sd card. */
|
||||
QEMUTimer *transfer_timer;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue