aboutsummaryrefslogtreecommitdiff
path: root/hw/apb_pci.c
diff options
context:
space:
mode:
authorBlue Swirl <blauwirbel@gmail.com>2010-01-26 21:59:57 +0000
committerBlue Swirl <blauwirbel@gmail.com>2010-01-26 21:59:57 +0000
commit776e1bbb6cf4fe66a93c1a5dd814bbb650deca00 (patch)
tree1b191a039b07ec2e09a229300aa586d9839a57b4 /hw/apb_pci.c
parentf139a4125682ecd45d96c2d1523443d1be65405c (diff)
downloadqemu-776e1bbb6cf4fe66a93c1a5dd814bbb650deca00.zip
qemu-776e1bbb6cf4fe66a93c1a5dd814bbb650deca00.tar.gz
qemu-776e1bbb6cf4fe66a93c1a5dd814bbb650deca00.tar.bz2
PCI: fix bridge configuration
PCI bridges' qdev info structures must indicate bridge header type, otherwise critical bridge registers (esp. PCI_PRIMARY_BUS, PCI_SECONDARY_BUS, PCI_SUBORDINATE_BUS) will not be writable. Signed-off-by: Blue Swirl <blauwirbel@gmail.com>
Diffstat (limited to 'hw/apb_pci.c')
-rw-r--r--hw/apb_pci.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/hw/apb_pci.c b/hw/apb_pci.c
index a72c656..7f458c6 100644
--- a/hw/apb_pci.c
+++ b/hw/apb_pci.c
@@ -365,6 +365,7 @@ static PCIDeviceInfo pbm_pci_host_info = {
.qdev.name = "pbm",
.qdev.size = sizeof(PCIDevice),
.init = pbm_pci_host_init,
+ .header_type = PCI_HEADER_TYPE_BRIDGE,
};
static void pbm_register_devices(void)