macio: call dma_memory_unmap() at the end of each DMA transfer
commitbc9ca5958d084222cdb233619dfc5046c81fb76d
authorMark Cave-Ayland <mark.cave-ayland@ilande.co.uk>
Fri, 10 Jun 2016 18:26:37 +0000 (10 19:26 +0100)
committerDavid Gibson <david@gibson.dropbear.id.au>
Tue, 14 Jun 2016 00:43:24 +0000 (14 10:43 +1000)
treeeff6cfa9bc61e29b41a1077cb445fb84e214415a
parent42bff4772ef96d901772240b10eda6d66ef771a1
macio: call dma_memory_unmap() at the end of each DMA transfer

This ensures that the underlying memory is marked dirty once the transfer
is complete and resolves cache coherency problems under MacOS 9.

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
include/hw/ppc/mac_dbdma.h