diff options
author | Blue Swirl <blauwirbel@gmail.com> | 2010-01-26 21:59:57 +0000 |
---|---|---|
committer | Blue Swirl <blauwirbel@gmail.com> | 2010-01-26 21:59:57 +0000 |
commit | 8972c0d86ee8ce21fdd9487a094692fb7d431086 (patch) | |
tree | 1b191a039b07ec2e09a229300aa586d9839a57b4 /hw/unin_pci.c | |
parent | 370f44988f821176ddaeb3d45c9aa7fb357bc88c (diff) | |
download | qemu-8972c0d86ee8ce21fdd9487a094692fb7d431086.tar.gz qemu-8972c0d86ee8ce21fdd9487a094692fb7d431086.tar.bz2 qemu-8972c0d86ee8ce21fdd9487a094692fb7d431086.zip |
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/unin_pci.c')
-rw-r--r-- | hw/unin_pci.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/hw/unin_pci.c b/hw/unin_pci.c index 3ae4e7a14d..b8a805b7df 100644 --- a/hw/unin_pci.c +++ b/hw/unin_pci.c @@ -269,6 +269,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 PCIDeviceInfo unin_agp_pci_host_info = { |