diff options
author | Mark Cave-Ayland <mark.cave-ayland@ilande.co.uk> | 2016-06-05 23:36:42 +0100 |
---|---|---|
committer | David Gibson <david@gibson.dropbear.id.au> | 2016-06-07 10:17:45 +1000 |
commit | ddd495e5e3a70dfe30386f649aad1b2c9469a4d5 (patch) | |
tree | c6140aedd31160dbbbf8f6c7cc13d25d57b45a57 /hw/ide/macio.c | |
parent | 9207113dcc49cb742de0ec8a96d9373efa54cc88 (diff) |
macio: use DMA memory interface for non-block ATAPI transfers
Signed-off-by: Mark Cave-Ayland <mark.cave-ayland@ilande.co.uk>
Signed-off-by: David Gibson <david@gibson.dropbear.id.au>
Diffstat (limited to 'hw/ide/macio.c')
-rw-r--r-- | hw/ide/macio.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/hw/ide/macio.c b/hw/ide/macio.c index 42ad68a1c0..78c10a0406 100644 --- a/hw/ide/macio.c +++ b/hw/ide/macio.c @@ -271,7 +271,8 @@ static void pmac_ide_atapi_transfer_cb(void *opaque, int ret) if (s->lba == -1) { /* Non-block ATAPI transfer - just copy to RAM */ s->io_buffer_size = MIN(s->io_buffer_size, io->len); - cpu_physical_memory_write(io->addr, s->io_buffer, s->io_buffer_size); + dma_memory_write(&address_space_memory, io->addr, s->io_buffer, + s->io_buffer_size); ide_atapi_cmd_ok(s); m->dma_active = false; goto done; |