Revision f487b677 hw/ide/macio.c

b/hw/ide/macio.c
70 70

  
71 71
    s->io_buffer_size = io->len;
72 72

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

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

Also available in: Unified diff