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/grackle_pci.c | 1 + 1 file changed, 1 insertion(+) (limited to 'hw/grackle_pci.c') diff --git a/hw/grackle_pci.c b/hw/grackle_pci.c index ee4fed53ed..f455c5991b 100644 --- a/hw/grackle_pci.c +++ b/hw/grackle_pci.c @@ -181,6 +181,7 @@ static PCIDeviceInfo dec_21154_pci_host_info = { .qdev.name = "dec-21154", .qdev.size = sizeof(PCIDevice), .init = dec_21154_pci_host_init, + .header_type = PCI_HEADER_TYPE_BRIDGE, }; static void grackle_register_devices(void) -- cgit v1.2.3-55-g7522