From 776e1bbb6cf4fe66a93c1a5dd814bbb650deca00 Mon Sep 17 00:00:00 2001 From: Blue Swirl Date: Tue, 26 Jan 2010 21:59:57 +0000 Subject: 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 --- hw/pci.c | 1 + 1 file changed, 1 insertion(+) (limited to 'hw/pci.c') diff --git a/hw/pci.c b/hw/pci.c index b83fd532bc..023f7b6f4a 100644 --- a/hw/pci.c +++ b/hw/pci.c @@ -1874,6 +1874,7 @@ static PCIDeviceInfo bridge_info = { .init = pci_bridge_initfn, .exit = pci_bridge_exitfn, .config_write = pci_bridge_write_config, + .header_type = PCI_HEADER_TYPE_BRIDGE, .qdev.props = (Property[]) { DEFINE_PROP_HEX32("vendorid", PCIBridge, vid, 0), DEFINE_PROP_HEX32("deviceid", PCIBridge, did, 0), -- cgit 1.4.1