aboutsummaryrefslogtreecommitdiff
path: root/hw/pci.c
diff options
context:
space:
mode:
authorths <ths@c046a42c-6fe2-441c-8c8c-71466251a162>2007-03-06 19:36:53 +0000
committerths <ths@c046a42c-6fe2-441c-8c8c-71466251a162>2007-03-06 19:36:53 +0000
commit451a42127ff27a499bed22e4eef1a5c452adc311 (patch)
treee34524bafe7b4cb589971786279bd9303c907ca8 /hw/pci.c
parent6d2980f515c005091de0b9f4fe526e749f62c380 (diff)
Fix typo in PCI bridge code.
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@2470 c046a42c-6fe2-441c-8c8c-71466251a162
Diffstat (limited to 'hw/pci.c')
-rw-r--r--hw/pci.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/hw/pci.c b/hw/pci.c
index b895f98a09..eeaef9e83d 100644
--- a/hw/pci.c
+++ b/hw/pci.c
@@ -587,7 +587,7 @@ PCIBus *pci_bridge_init(PCIBus *bus, int devfn, uint32_t id,
s = (PCIBridge *)pci_register_device(bus, name, sizeof(PCIBridge),
devfn, NULL, pci_bridge_write_config);
s->dev.config[0x00] = id >> 16;
- s->dev.config[0x01] = id > 24;
+ s->dev.config[0x01] = id >> 24;
s->dev.config[0x02] = id; // device_id
s->dev.config[0x03] = id >> 8;
s->dev.config[0x04] = 0x06; // command = bus master, pci mem