[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PULL 23/38] hw/ppc/e500: Reduce usage of sysbus API
From: |
Daniel Henrique Barboza |
Subject: |
[PULL 23/38] hw/ppc/e500: Reduce usage of sysbus API |
Date: |
Mon, 17 Oct 2022 16:19:54 -0300 |
From: Bernhard Beschow <shentey@gmail.com>
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>
Reviewed-by: Philippe Mathieu-Daudé <f4bug@amsat.org>
Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
Message-Id: <20221003203142.24355-5-shentey@gmail.com>
Signed-off-by: Daniel Henrique Barboza <danielhb413@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
- [PULL 12/38] ppc440_sdram: Implement enable bit in the DDR2 SDRAM controller, (continued)
- [PULL 12/38] ppc440_sdram: Implement enable bit in the DDR2 SDRAM controller, Daniel Henrique Barboza, 2022/10/17
- [PULL 09/38] ppc4xx_sdram: QOM'ify, Daniel Henrique Barboza, 2022/10/17
- [PULL 19/38] ppc440_uc.c: Remove unneeded parenthesis, Daniel Henrique Barboza, 2022/10/17
- [PULL 11/38] ppc440_sdram: Split off map/unmap of sdram banks for later reuse, Daniel Henrique Barboza, 2022/10/17
- [PULL 15/38] ppc4xx_sdram: Rename functions to prevent name clashes, Daniel Henrique Barboza, 2022/10/17
- [PULL 17/38] ppc440_sdram: QOM'ify, Daniel Henrique Barboza, 2022/10/17
- [PULL 18/38] ppc440_uc.c: Move some macros to ppc4xx.h, Daniel Henrique Barboza, 2022/10/17
- [PULL 16/38] ppc440_sdram: Move RAM size check to ppc440_sdram_init, Daniel Henrique Barboza, 2022/10/17
- [PULL 21/38] hw/gpio/meson: Introduce dedicated config switch for hw/gpio/mpc8xxx, Daniel Henrique Barboza, 2022/10/17
- [PULL 22/38] docs/system/ppc/ppce500: Add heading for networking chapter, Daniel Henrique Barboza, 2022/10/17
- [PULL 23/38] hw/ppc/e500: Reduce usage of sysbus API,
Daniel Henrique Barboza <=
- [PULL 24/38] hw/ppc/mpc8544ds: Rename wrongly named method, Daniel Henrique Barboza, 2022/10/17
- [PULL 26/38] hw/ppc/e500: Remove if statement which is now always true, Daniel Henrique Barboza, 2022/10/17
- [PULL 20/38] hw/ppc/meson: Allow e500 boards to be enabled separately, Daniel Henrique Barboza, 2022/10/17
- [PULL 25/38] hw/ppc/mpc8544ds: Add platform bus, Daniel Henrique Barboza, 2022/10/17
- [PULL 32/38] hw/ppc: set machine->fdt in sam460ex_load_device_tree(), Daniel Henrique Barboza, 2022/10/17
- [PULL 33/38] hw/ppc: set machine->fdt in xilinx_load_device_tree(), Daniel Henrique Barboza, 2022/10/17
- [PULL 35/38] hw/ppc: set machine->fdt in pnv_reset(), Daniel Henrique Barboza, 2022/10/17
- [PULL 28/38] hw/ppc/spapr_pci.c: Use device_cold_reset() rather than device_legacy_reset(), Daniel Henrique Barboza, 2022/10/17
- [PULL 27/38] target/ppc: Fix xvcmp* clearing FI bit, Daniel Henrique Barboza, 2022/10/17
- [PULL 29/38] qmp/hmp, device_tree.c: introduce dumpdtb, Daniel Henrique Barboza, 2022/10/17