projects
/
qemu.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
9207113
)
macio: use DMA memory interface for non-block ATAPI transfers
author
Mark Cave-Ayland
<mark.cave-ayland@ilande.co.uk>
Sun, 5 Jun 2016 22:36:42 +0000
(23:36 +0100)
committer
David Gibson
<david@gibson.dropbear.id.au>
Tue, 7 Jun 2016 00:17:45 +0000
(10:17 +1000)
Signed-off-by: Mark Cave-Ayland <mark.cave-ayland@ilande.co.uk>
Signed-off-by: David Gibson <david@gibson.dropbear.id.au>
hw/ide/macio.c
patch
|
blob
|
history
diff --git
a/hw/ide/macio.c
b/hw/ide/macio.c
index 42ad68a1c0727519299a99912111cf8a3da501fe..78c10a040661a728b3192dca51f8b97b479bfd17 100644
(file)
--- 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;