X-Git-Url: http://git.ipfire.org/?a=blobdiff_plain;f=dma-helpers.c;h=e8a26e81e16703019e211a1ff0446d3b93b1f401;hb=9c1f4f1b9bb4e5df43c4267d519938c1a2aa8e27;hp=d3871dc61ea2daade45e8d0c7074e02792f4a49a;hpb=9f3a972e225600d76c673ed23da2bcb07f27aa4d;p=thirdparty%2Fqemu.git diff --git a/dma-helpers.c b/dma-helpers.c index d3871dc61ea..e8a26e81e16 100644 --- a/dma-helpers.c +++ b/dma-helpers.c @@ -28,8 +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, MEMTXATTRS_UNSPECIFIED, - fillbuf, l, true); + error |= address_space_write(as, addr, MEMTXATTRS_UNSPECIFIED, + fillbuf, l); len -= l; addr += l; }