]> git.ipfire.org Git - thirdparty/qemu.git/commit
hw/ppc/e500: Use SysBusDevice API to access TYPE_CCSR's internal resources
authorBernhard Beschow <shentey@gmail.com>
Fri, 23 May 2025 15:02:13 +0000 (17:02 +0200)
committerPhilippe Mathieu-Daudé <philmd@linaro.org>
Tue, 10 Jun 2025 10:59:09 +0000 (12:59 +0200)
commita35391ba87651daeafa02231e842ae28c349cac0
tree6bc3a54be302382720d5437ffd422e68f4a8a107
parent3c32fa9fb2300bbe435fc417dbb521981e230639
hw/ppc/e500: Use SysBusDevice API to access TYPE_CCSR's internal resources

Rather than accessing the attributes of TYPE_CCSR directly, use the SysBusDevice
API which exists exactly for that purpose. Furthermore, registering the memory
region with the SysBusDevice API makes it show up in QMP's `info qom-tree`
command.

Signed-off-by: Bernhard Beschow <shentey@gmail.com>
Reviewed-by: BALATON Zoltan <balaton@eik.bme.hu>
[balaton: rebased]
Signed-off-by: BALATON Zoltan <balaton@eik.bme.hu>
Acked-by: Bernhard Beschow <shentey@gmail.com>
Message-ID: <619a58d1f83d2aad5b4feec930d46c64abff0977.1748012109.git.balaton@eik.bme.hu>
Signed-off-by: Philippe Mathieu-Daudé <philmd@linaro.org>
hw/pci-host/ppce500.c
hw/ppc/e500.c