On 4/15/21 3:04 AM, Philippe Mathieu-Daudé wrote:
dma_memory_set() does a DMA barrier, set the address space with
a constant value. The constant value filling code is not specific
to DMA and can be used for AddressSpace. Extract it as a new
helper: address_space_set().

Signed-off-by: Philippe Mathieu-Daudé<phi...@redhat.com>
---
  include/exec/memory.h | 16 ++++++++++++++++
  softmmu/dma-helpers.c | 16 +---------------
  softmmu/physmem.c     | 19 +++++++++++++++++++
  3 files changed, 36 insertions(+), 15 deletions(-)

Reviewed-by: Richard Henderson <richard.hender...@linaro.org>

r~

Reply via email to