hw/apb: fix PCI bus initialization
commit2f3ae0b2d4343712ee2a1b23b51bfe5272c52138
authorMarcel Apfelbaum <marcel@redhat.com>
Thu, 14 Jul 2016 13:43:43 +0000 (14 16:43 +0300)
committerMichael S. Tsirkin <mst@redhat.com>
Wed, 20 Jul 2016 16:30:26 +0000 (20 19:30 +0300)
treecac2d48f9ee119e4acccfa10c8eca90f7a36b4a8
parenta8c1a75343940fdc9d47e6a9b7723476bb5e1774
hw/apb: fix PCI bus initialization

Create and connect the PCI root bus to the
host bridge before the later is 'realized'.

Signed-off-by: Marcel Apfelbaum <marcel@redhat.com>
Reviewed-by: Michael S. Tsirkin <mst@redhat.com>
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
Tested-by: Mark Cave-Ayland <mark.cave-ayland@ilande.co.uk>
hw/pci-host/apb.c