diff options
author | Mark Cave-Ayland | 2016-06-06 00:36:42 +0200 |
---|---|---|
committer | David Gibson | 2016-06-07 02:17:45 +0200 |
commit | ddd495e5e3a70dfe30386f649aad1b2c9469a4d5 (patch) | |
tree | c6140aedd31160dbbbf8f6c7cc13d25d57b45a57 /hw | |
parent | target-ppc: fixup bitrot in mmu_helper.c debug statements (diff) | |
download | qemu-ddd495e5e3a70dfe30386f649aad1b2c9469a4d5.tar.gz qemu-ddd495e5e3a70dfe30386f649aad1b2c9469a4d5.tar.xz qemu-ddd495e5e3a70dfe30386f649aad1b2c9469a4d5.zip |
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')
-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; |