diff options
author | Philippe Mathieu-Daudé <philmd@redhat.com> | 2021-08-19 18:34:22 +0200 |
---|---|---|
committer | Peter Maydell <peter.maydell@linaro.org> | 2021-08-26 17:01:59 +0100 |
commit | 783dbab19fb79eee2b59c23043ca555d996cb91b (patch) | |
tree | d84be238edc9cb428793c4b0635806c2dd30a612 /include/hw/dma | |
parent | c31b7f59014252e8de02597ee3af956259bc0d5e (diff) | |
download | qemu-783dbab19fb79eee2b59c23043ca555d996cb91b.zip qemu-783dbab19fb79eee2b59c23043ca555d996cb91b.tar.gz qemu-783dbab19fb79eee2b59c23043ca555d996cb91b.tar.bz2 |
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>
Diffstat (limited to 'include/hw/dma')
-rw-r--r-- | include/hw/dma/xlnx-zdma.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/hw/dma/xlnx-zdma.h b/include/hw/dma/xlnx-zdma.h index 6602e7f..efc7521 100644 --- a/include/hw/dma/xlnx-zdma.h +++ b/include/hw/dma/xlnx-zdma.h @@ -56,7 +56,7 @@ struct XlnxZDMA { MemoryRegion iomem; MemTxAttrs attr; MemoryRegion *dma_mr; - AddressSpace *dma_as; + AddressSpace dma_as; qemu_irq irq_zdma_ch_imr; struct { |