hw/dma/xlnx_csu_dma: Always expect 'dma' link property to be set
commitc31b7f59014252e8de02597ee3af956259bc0d5e
authorPhilippe Mathieu-Daudé <philmd@redhat.com>
Thu, 19 Aug 2021 16:34:21 +0000 (19 18:34 +0200)
committerPeter Maydell <peter.maydell@linaro.org>
Thu, 26 Aug 2021 16:01:59 +0000 (26 17:01 +0100)
treede423a2f10515ca20cb86ed5e638109087ee8c1e
parent348ba7bede1513f7e5aba0b755380d2ff1720192
hw/dma/xlnx_csu_dma: Always expect 'dma' link property to be set

Simplify by always passing a MemoryRegion property to the device.
Doing so we can move the AddressSpace field to the device struct,
removing need for heap allocation.

Update the Xilinx ZynqMP SoC model to pass the default system
memory instead of a NULL value.

Suggested-by: Peter Maydell <peter.maydell@linaro.org>
Signed-off-by: Philippe Mathieu-Daudé <philmd@redhat.com>
Reviewed-by: Peter Maydell <peter.maydell@linaro.org>
Message-id: 20210819163422.2863447-4-philmd@redhat.com
Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
hw/arm/xlnx-zynqmp.c
hw/dma/xlnx_csu_dma.c
include/hw/dma/xlnx_csu_dma.h