diff options
author | Michael S. Tsirkin <mst@redhat.com> | 2012-02-12 21:02:01 +0200 |
---|---|---|
committer | Michael S. Tsirkin <mst@redhat.com> | 2012-03-15 17:04:58 +0200 |
commit | 95be1196030c003a65052fc7b8a3394fdac690a8 (patch) | |
tree | f98f24da80ca8e5569b0290800493f5c8f1c0a51 | |
parent | ae7d54d489540b49b7c13a7df7ddc220588a2ced (diff) | |
download | qemu-95be1196030c003a65052fc7b8a3394fdac690a8.tar.gz qemu-95be1196030c003a65052fc7b8a3394fdac690a8.tar.bz2 qemu-95be1196030c003a65052fc7b8a3394fdac690a8.zip |
pci_bridge: fix status: do not override cap bit
-rw-r--r-- | hw/pci_bridge.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/hw/pci_bridge.c b/hw/pci_bridge.c index 1ed43394de..fea3873943 100644 --- a/hw/pci_bridge.c +++ b/hw/pci_bridge.c @@ -305,8 +305,8 @@ int pci_bridge_initfn(PCIDevice *dev) PCIBridge *br = DO_UPCAST(PCIBridge, dev, dev); PCIBus *sec_bus = &br->sec_bus; - pci_set_word(dev->config + PCI_STATUS, - PCI_STATUS_66MHZ | PCI_STATUS_FAST_BACK); + pci_word_test_and_set_mask(dev->config + PCI_STATUS, + PCI_STATUS_66MHZ | PCI_STATUS_FAST_BACK); pci_config_set_class(dev->config, PCI_CLASS_BRIDGE_PCI); dev->config[PCI_HEADER_TYPE] = (dev->config[PCI_HEADER_TYPE] & PCI_HEADER_TYPE_MULTI_FUNCTION) | |