]> git.proxmox.com Git - qemu.git/commit - exec.c
dma: Define dma_context_memory and use in sysbus-ohci
authorPeter Maydell <peter.maydell@linaro.org>
Mon, 29 Oct 2012 01:34:32 +0000 (11:34 +1000)
committerPaolo Bonzini <pbonzini@redhat.com>
Mon, 12 Nov 2012 15:44:57 +0000 (16:44 +0100)
commit9e11908f12f92e31ea94dc2a4c962c836cba9f2a
tree58ae5eb64276cbd5d0d9a3eeaec7f46ff8514d0a
parent4003e24fce1df84a2e8c992376ed2c294816c33c
dma: Define dma_context_memory and use in sysbus-ohci

Define a new global dma_context_memory which is a DMAContext corresponding
to the global address_space_memory AddressSpace. This can be used by
sysbus peripherals like sysbus-ohci which need to do DMA.

In particular, use it in the sysbus-ohci device, which fixes a
segfault when attempting to use that device.

Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
Reviewed-by: Peter Crosthwaite <peter.crosthwaite@xilinx.com>
dma.h
exec.c
hw/usb/hcd-ohci.c