hw/dma/xlnx-zdma Always expect 'dma' link property to be set
commit783dbab19fb79eee2b59c23043ca555d996cb91b
authorPhilippe Mathieu-Daudé <philmd@redhat.com>
Thu, 19 Aug 2021 16:34:22 +0000 (19 18:34 +0200)
committerPeter Maydell <peter.maydell@linaro.org>
Thu, 26 Aug 2021 16:01:59 +0000 (26 17:01 +0100)
treed84be238edc9cb428793c4b0635806c2dd30a612
parentc31b7f59014252e8de02597ee3af956259bc0d5e
hw/dma/xlnx-zdma 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 / Versal SoC models 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-5-philmd@redhat.com
Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
hw/arm/xlnx-versal.c
hw/arm/xlnx-zynqmp.c
hw/dma/xlnx-zdma.c
include/hw/dma/xlnx-zdma.h