On 25 October 2012 10:47, Peter Crosthwaite
<peter.crosthwa...@xilinx.com> wrote:
> +static int usb_ehci_sysbus_initfn(SysBusDevice *dev)
> +{
> +    EHCIItfState *i = FROM_SYSBUS(EHCIItfState, dev);
> +    EHCIState *s = &i->ehci;
> +
> +    s->dma = g_new(DMAContext, 1);
> +    dma_context_init(s->dma, &address_space_memory, NULL, NULL, NULL);

Assuming Avi doesn't reject it, better to use the dma_context_memory
I introduced in this patch (not yet applied to master):
  http://patchwork.ozlabs.org/patch/193550/

-- PMM

Reply via email to