summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPeter Crosthwaite <peter.crosthwaite@xilinx.com>2012-11-29 11:43:18 +1000
committerGerd Hoffmann <kraxel@redhat.com>2012-11-29 08:04:13 +0100
commit2b29f492c844ed03d6d16ebe6bb760d71b6557fe (patch)
tree09bfe38f3c2bc87d2564886bb18adfffa96b3b66
parentc128d6a6d785eb9235a4f6dbd52f405ab8c60bee (diff)
downloadhqemu-2b29f492c844ed03d6d16ebe6bb760d71b6557fe.zip
hqemu-2b29f492c844ed03d6d16ebe6bb760d71b6557fe.tar.gz
ehci-sysbus: Attach DMA context.
This was left as NULL on the initial merge due to debate on the mailing list on how to handle DMA contexts for sysbus devices. Patch 9e11908f12f92e31ea94dc2a4c962c836cba9f2a was later merged to fix OHCI. This is the, equivalent fix for sysbus EHCI. Signed-off-by: Peter Crosthwaite <peter.crosthwaite@xilinx.com> Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
-rw-r--r--hw/usb/hcd-ehci-sysbus.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/hw/usb/hcd-ehci-sysbus.c b/hw/usb/hcd-ehci-sysbus.c
index 1584079..803df92 100644
--- a/hw/usb/hcd-ehci-sysbus.c
+++ b/hw/usb/hcd-ehci-sysbus.c
@@ -45,6 +45,7 @@ static int usb_ehci_sysbus_initfn(SysBusDevice *dev)
s->capsbase = 0x100;
s->opregbase = 0x140;
+ s->dma = &dma_context_memory;
usb_ehci_initfn(s, DEVICE(dev));
sysbus_init_irq(dev, &s->irq);
OpenPOWER on IntegriCloud