[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH v2 04/13] hw/ppc/e500: Reduce usage of sysbus API
From: |
Bernhard Beschow |
Subject: |
[PATCH v2 04/13] hw/ppc/e500: Reduce usage of sysbus API |
Date: |
Mon, 3 Oct 2022 22:31:33 +0200 |
PlatformBusDevice has an mmio attribute which gets aliased to
SysBusDevice::mmio[0]. So PlatformbusDevice::mmio can be used directly,
avoiding the sysbus API.
Signed-off-by: Bernhard Beschow <shentey@gmail.com>
---
hw/ppc/e500.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/hw/ppc/e500.c b/hw/ppc/e500.c
index 32495d0123..496c61b612 100644
--- a/hw/ppc/e500.c
+++ b/hw/ppc/e500.c
@@ -1023,7 +1023,7 @@ void ppce500_init(MachineState *machine)
memory_region_add_subregion(address_space_mem,
pmc->platform_bus_base,
- sysbus_mmio_get_region(s, 0));
+ &pms->pbus_dev->mmio);
}
/*
--
2.37.3
- [PATCH v2 00/13] ppc/e500: Add support for two types of flash, cleanup, Bernhard Beschow, 2022/10/03
- [PATCH v2 02/13] hw/gpio/meson: Introduce dedicated config switch for hw/gpio/mpc8xxx, Bernhard Beschow, 2022/10/03
- [PATCH v2 03/13] docs/system/ppc/ppce500: Add heading for networking chapter, Bernhard Beschow, 2022/10/03
- [PATCH v2 01/13] hw/ppc/meson: Allow e500 boards to be enabled separately, Bernhard Beschow, 2022/10/03
- [PATCH v2 10/13] hw/sd/sdhci-internal: Unexport ESDHC defines, Bernhard Beschow, 2022/10/03
- [PATCH v2 09/13] hw/ppc/e500: Implement pflash handling, Bernhard Beschow, 2022/10/03
- [PATCH v2 04/13] hw/ppc/e500: Reduce usage of sysbus API,
Bernhard Beschow <=
- [PATCH v2 05/13] hw/ppc/mpc8544ds: Rename wrongly named method, Bernhard Beschow, 2022/10/03
- [PATCH v2 08/13] hw/block/pflash_cfi01: Error out if device length isn't a power of two, Bernhard Beschow, 2022/10/03
- [PATCH v2 13/13] hw/ppc/e500: Add Freescale eSDHC to e500 boards, Bernhard Beschow, 2022/10/03