macio: Fix macio-bus to be a subtype of System bus
commit6741a3430b59cfbdb97a2194dcc16a4fedce486d
authorMarkus Armbruster <armbru@redhat.com>
Tue, 9 Jun 2020 12:23:30 +0000 (9 14:23 +0200)
committerMarkus Armbruster <armbru@redhat.com>
Mon, 15 Jun 2020 19:36:21 +0000 (15 21:36 +0200)
treeb1402d318113b767be18da3109a665d4b6e47d31
parent514db7710bf59c2c6d3c5046f5b52e54829fcbc0
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>
hw/misc/macio/macio.c