diff options
author | Wen, Jianxian <Jianxian.Wen@verisilicon.com> | 2021-08-18 10:17:00 +0000 |
---|---|---|
committer | Peter Maydell <peter.maydell@linaro.org> | 2021-08-25 10:48:50 +0100 |
commit | 77844cc51aa0714d54ae6f5a12279ce0e7f5ef55 (patch) | |
tree | de778196460fc924fbf591d8694bce77ffa351e5 /hw/arm/exynos4210.c | |
parent | ff31cca71ef257f8da2d9bc647ddd53f080ce580 (diff) | |
download | qemu-77844cc51aa0714d54ae6f5a12279ce0e7f5ef55.zip qemu-77844cc51aa0714d54ae6f5a12279ce0e7f5ef55.tar.gz qemu-77844cc51aa0714d54ae6f5a12279ce0e7f5ef55.tar.bz2 |
hw/dma/pl330: Add memory region to replace default
Add property memory region which can connect with IOMMU region to support SMMU translate.
Signed-off-by: Jianxian Wen <jianxian.wen@verisilicon.com>
Reviewed-by: Philippe Mathieu-Daudé <f4bug@amsat.org>
Message-id: 4C23C17B8E87E74E906A25A3254A03F4FA1FEC31@SHASXM03.verisilicon.com
Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
Diffstat (limited to 'hw/arm/exynos4210.c')
-rw-r--r-- | hw/arm/exynos4210.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/hw/arm/exynos4210.c b/hw/arm/exynos4210.c index 5c7a51b..0299e81 100644 --- a/hw/arm/exynos4210.c +++ b/hw/arm/exynos4210.c @@ -173,6 +173,9 @@ static DeviceState *pl330_create(uint32_t base, qemu_or_irq *orgate, int i; dev = qdev_new("pl330"); + object_property_set_link(OBJECT(dev), "memory", + OBJECT(get_system_memory()), + &error_fatal); qdev_prop_set_uint8(dev, "num_events", nevents); qdev_prop_set_uint8(dev, "num_chnls", 8); qdev_prop_set_uint8(dev, "num_periph_req", nreq); |