diff options
author | Bernhard Beschow <shentey@gmail.com> | 2022-10-03 22:31:33 +0200 |
---|---|---|
committer | Daniel Henrique Barboza <danielhb413@gmail.com> | 2022-10-17 16:15:09 -0300 |
commit | bacb4eb87608b398b5a261a5a9224758350add1d (patch) | |
tree | a17d5f7c8b95d05a4880202c83c39887fc9cbec1 /hw/ppc/e500.c | |
parent | e018489d8b4c1d85a3851fbe48b0befd2ccfc647 (diff) | |
download | qemu-bacb4eb87608b398b5a261a5a9224758350add1d.zip qemu-bacb4eb87608b398b5a261a5a9224758350add1d.tar.gz qemu-bacb4eb87608b398b5a261a5a9224758350add1d.tar.bz2 |
hw/ppc/e500: Reduce usage of sysbus API
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>
Diffstat (limited to 'hw/ppc/e500.c')
-rw-r--r-- | hw/ppc/e500.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/hw/ppc/e500.c b/hw/ppc/e500.c index 32495d0..496c61b 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); } /* |