exec/memory: Extract address_space_set() from dma_memory_set()
authorPhilippe Mathieu-Daudé <philmd@redhat.com>
Sat, 15 Jan 2022 20:37:23 +0000 (21:37 +0100)
committerLaurent Vivier <laurent@vivier.eu>
Thu, 20 Jan 2022 08:09:37 +0000 (09:09 +0100)
commit75f01c68b5c630a9a6b21b93febf3a871a9111ba
tree37f7a429e17bd1ce867e1a375613657f85cb6cde
parent5e0214cdeee17de949f2565f4429c15173179ae3
exec/memory: Extract address_space_set() from dma_memory_set()

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é <philmd@redhat.com>
Reviewed-by: Laurent Vivier <laurent@vivier.eu>
Reviewed-by: Stefano Garzarella <sgarzare@redhat.com>
Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
[lv: rebase]
Signed-off-by: Laurent Vivier <laurent@vivier.eu>
Reviewed-by: David Hildenbrand <david@redhat.com>
Reviewed-by: Peter Xu <peterx@redhat.com>
Message-Id: <20220115203725.3834712-2-laurent@vivier.eu>
include/exec/memory.h
softmmu/dma-helpers.c
softmmu/physmem.c