Skip to content

Commit

Permalink
hw/ppc/e500: Reduce usage of sysbus API
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
shentok authored and danielhb committed Oct 17, 2022
1 parent e018489 commit bacb4eb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion hw/ppc/e500.c
Expand Up @@ -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);
}

/*
Expand Down

0 comments on commit bacb4eb

Please sign in to comment.