summaryrefslogtreecommitdiff
path: root/hw
diff options
context:
space:
mode:
authorBlue Swirl <blauwirbel@gmail.com>2010-02-06 14:57:04 +0000
committerBlue Swirl <blauwirbel@gmail.com>2010-02-06 14:57:04 +0000
commit525e05147d5a3bdc08caa422d108c1ef71b584b5 (patch)
tree2967db4c23817f03f81f5d0c7a4b2bd7c6ff5474 /hw
parentc021f8e65f5009a5ab5711d9d5326fcab553ef1c (diff)
downloadqemu-525e05147d5a3bdc08caa422d108c1ef71b584b5.tar.gz
PCI: show also host bridge data in "info pci" output
Signed-off-by: Blue Swirl <blauwirbel@gmail.com>
Diffstat (limited to 'hw')
-rw-r--r--hw/pci.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/hw/pci.c b/hw/pci.c
index 2aeaf75a10..9ad63dd948 100644
--- a/hw/pci.c
+++ b/hw/pci.c
@@ -1290,7 +1290,7 @@ static QObject *pci_get_dev_dict(PCIDevice *dev, PCIBus *bus, int bus_num)
}
class = pci_get_word(dev->config + PCI_CLASS_DEVICE);
- if (class == 0x0604) {
+ if (class == PCI_CLASS_BRIDGE_HOST || class == PCI_CLASS_BRIDGE_PCI) {
QDict *qdict;
QObject *pci_bridge;