hw/ppc/e500: Reduce usage of sysbus API
commitbacb4eb87608b398b5a261a5a9224758350add1d
authorBernhard Beschow <shentey@gmail.com>
Mon, 3 Oct 2022 20:31:33 +0000 (3 22:31 +0200)
committerDaniel Henrique Barboza <danielhb413@gmail.com>
Mon, 17 Oct 2022 19:15:09 +0000 (17 16:15 -0300)
treea17d5f7c8b95d05a4880202c83c39887fc9cbec1
parente018489d8b4c1d85a3851fbe48b0befd2ccfc647
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>
hw/ppc/e500.c