projects
/
qemu.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ae7d54d
)
pci_bridge: fix status: do not override cap bit
author
Michael S. Tsirkin
<mst@redhat.com>
Sun, 12 Feb 2012 19:02:01 +0000
(21:02 +0200)
committer
Michael S. Tsirkin
<mst@redhat.com>
Thu, 15 Mar 2012 15:04:58 +0000
(17:04 +0200)
hw/pci_bridge.c
patch
|
blob
|
history
diff --git
a/hw/pci_bridge.c
b/hw/pci_bridge.c
index 1ed43394de2b22d2d10363f9f2b336ae7ca06bd9..fea3873943d9881dfa619b88ef167310d1faefed 100644
(file)
--- 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) |