diff options
author | Markus Armbruster <armbru@redhat.com> | 2020-06-09 14:23:30 +0200 |
---|---|---|
committer | Markus Armbruster <armbru@redhat.com> | 2020-06-15 21:36:21 +0200 |
commit | 6741a3430b59cfbdb97a2194dcc16a4fedce486d (patch) | |
tree | b1402d318113b767be18da3109a665d4b6e47d31 /hw/misc/macio | |
parent | 514db7710bf59c2c6d3c5046f5b52e54829fcbc0 (diff) | |
download | qemu-6741a3430b59cfbdb97a2194dcc16a4fedce486d.zip qemu-6741a3430b59cfbdb97a2194dcc16a4fedce486d.tar.gz qemu-6741a3430b59cfbdb97a2194dcc16a4fedce486d.tar.bz2 |
macio: Fix macio-bus to be a subtype of System bus
The devices we plug into the macio-bus are all sysbus devices
(DeviceClass member bus_type is TYPE_SYSTEM_BUS), but macio-bus does
not derive from TYPE_SYSTEM_BUS. Fix that.
"info qtree" now shows the devices' mmio ranges, as it should
Cc: Mark Cave-Ayland <mark.cave-ayland@ilande.co.uk>
Cc: David Gibson <david@gibson.dropbear.id.au>
Cc: qemu-ppc@nongnu.org
Signed-off-by: Markus Armbruster <armbru@redhat.com>
Reviewed-by: Philippe Mathieu-Daudé <philmd@redhat.com>
Message-Id: <20200609122339.937862-16-armbru@redhat.com>
Diffstat (limited to 'hw/misc/macio')
-rw-r--r-- | hw/misc/macio/macio.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/hw/misc/macio/macio.c b/hw/misc/macio/macio.c index ebc96cc..53a9fd5 100644 --- a/hw/misc/macio/macio.c +++ b/hw/misc/macio/macio.c @@ -492,7 +492,7 @@ static void macio_class_init(ObjectClass *klass, void *data) static const TypeInfo macio_bus_info = { .name = TYPE_MACIO_BUS, - .parent = TYPE_BUS, + .parent = TYPE_SYSTEM_BUS, .instance_size = sizeof(MacIOBusState), }; |