Revision df32fd1c hw/ide/macio.c

b/hw/ide/macio.c
71 71
    s->io_buffer_size = io->len;
72 72

  
73 73
    qemu_sglist_init(&s->sg, io->len / MACIO_PAGE_SIZE + 1,
74
                     &dma_context_memory);
74
                     &address_space_memory);
75 75
    qemu_sglist_add(&s->sg, io->addr, io->len);
76 76
    io->addr += io->len;
77 77
    io->len = 0;
......
128 128
    s->io_buffer_size = io->len;
129 129

  
130 130
    qemu_sglist_init(&s->sg, io->len / MACIO_PAGE_SIZE + 1,
131
                     &dma_context_memory);
131
                     &address_space_memory);
132 132
    qemu_sglist_add(&s->sg, io->addr, io->len);
133 133
    io->addr += io->len;
134 134
    io->len = 0;

Also available in: Unified diff