diff options
author | Peter Delevoryas | 2022-06-30 09:21:13 +0200 |
---|---|---|
committer | Cédric Le Goater | 2022-06-30 09:21:13 +0200 |
commit | 5bfcbda70deffa64e80a011f31e0be7116cb1a66 (patch) | |
tree | 4e98af91a5b6b95e388c5c8425c010a5e0903365 /include/hw/arm | |
parent | aspeed: Add memory property to Aspeed SoC (diff) | |
download | qemu-5bfcbda70deffa64e80a011f31e0be7116cb1a66.tar.gz qemu-5bfcbda70deffa64e80a011f31e0be7116cb1a66.tar.xz qemu-5bfcbda70deffa64e80a011f31e0be7116cb1a66.zip |
aspeed: Remove usage of sysbus_mmio_map
sysbus_mmio_map maps devices into "get_system_memory()".
With the new SoC memory attribute, we want to make sure that each device is
mapped into the SoC memory.
In single SoC machines, the SoC memory is the same as "get_system_memory()",
but in multi SoC machines it will be different.
Signed-off-by: Peter Delevoryas <pdel@fb.com>
Reviewed-by: Cédric Le Goater <clg@kaod.org>
Message-Id: <20220624003701.1363500-4-pdel@fb.com>
Signed-off-by: Cédric Le Goater <clg@kaod.org>
Diffstat (limited to 'include/hw/arm')
-rw-r--r-- | include/hw/arm/aspeed_soc.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/include/hw/arm/aspeed_soc.h b/include/hw/arm/aspeed_soc.h index c8e903b821..1ab328d00c 100644 --- a/include/hw/arm/aspeed_soc.h +++ b/include/hw/arm/aspeed_soc.h @@ -168,5 +168,6 @@ enum { qemu_irq aspeed_soc_get_irq(AspeedSoCState *s, int dev); void aspeed_soc_uart_init(AspeedSoCState *s); bool aspeed_soc_dram_init(AspeedSoCState *s, Error **errp); +void aspeed_mmio_map(AspeedSoCState *s, SysBusDevice *dev, int n, hwaddr addr); #endif /* ASPEED_SOC_H */ |