summaryrefslogtreecommitdiffstats
path: root/include/sysemu/dma.h
diff options
context:
space:
mode:
authorPeter Maydell2015-04-26 17:49:24 +0200
committerPeter Maydell2015-04-26 17:49:24 +0200
commit5c9eb0286c819c1836220a32f2e1a7b5004ac79a (patch)
tree2edd15dfc1b1a4c6b6b954559f273d4212e1ca26 /include/sysemu/dma.h
parentexec.c: Convert subpage memory ops to _with_attrs (diff)
downloadqemu-5c9eb0286c819c1836220a32f2e1a7b5004ac79a.tar.gz
qemu-5c9eb0286c819c1836220a32f2e1a7b5004ac79a.tar.xz
qemu-5c9eb0286c819c1836220a32f2e1a7b5004ac79a.zip
exec.c: Make address_space_rw take transaction attributes
Make address_space_rw take transaction attributes, rather than always using the 'unspecified' attributes. Signed-off-by: Peter Maydell <peter.maydell@linaro.org> Reviewed-by: Paolo Bonzini <pbonzini@redhat.com> Reviewed-by: Edgar E. Iglesias <edgar.iglesias@xilinx.com> Reviewed-by: Alex Bennée <alex.bennee@linaro.org>
Diffstat (limited to 'include/sysemu/dma.h')
-rw-r--r--include/sysemu/dma.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/include/sysemu/dma.h b/include/sysemu/dma.h
index 3f2f4c89e3..efa8b9993a 100644
--- a/include/sysemu/dma.h
+++ b/include/sysemu/dma.h
@@ -88,7 +88,8 @@ static inline int dma_memory_rw_relaxed(AddressSpace *as, dma_addr_t addr,
void *buf, dma_addr_t len,
DMADirection dir)
{
- return address_space_rw(as, addr, buf, len, dir == DMA_DIRECTION_FROM_DEVICE);
+ return (bool)address_space_rw(as, addr, MEMTXATTRS_UNSPECIFIED,
+ buf, len, dir == DMA_DIRECTION_FROM_DEVICE);
}
static inline int dma_memory_read_relaxed(AddressSpace *as, dma_addr_t addr,