aboutsummaryrefslogtreecommitdiff
path: root/dma-helpers.c
diff options
context:
space:
mode:
authorPeter Maydell <peter.maydell@linaro.org>2015-04-13 13:50:29 +0100
committerPeter Maydell <peter.maydell@linaro.org>2015-04-13 13:50:29 +0100
commitdcca62f362507dd48d229f511d37a3b6a7b98913 (patch)
tree911307a011791d45da10a37a920cf2fc2685e9e5 /dma-helpers.c
parente450ec4aae94fbda5db34edaa260c36047bf206f (diff)
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>
Diffstat (limited to 'dma-helpers.c')
-rw-r--r--dma-helpers.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/dma-helpers.c b/dma-helpers.c
index 6918572e18..33b1983b25 100644
--- a/dma-helpers.c
+++ b/dma-helpers.c
@@ -28,7 +28,8 @@ int dma_memory_set(AddressSpace *as, dma_addr_t addr, uint8_t c, dma_addr_t len)
memset(fillbuf, c, FILLBUF_SIZE);
while (len > 0) {
l = len < FILLBUF_SIZE ? len : FILLBUF_SIZE;
- error |= address_space_rw(as, addr, fillbuf, l, true);
+ error |= address_space_rw(as, addr, MEMTXATTRS_UNSPECIFIED,
+ fillbuf, l, true);
len -= l;
addr += l;
}