Commit 451a42127ff27a499bed22e4eef1a5c452adc311

Authored by ths
1 parent 6d2980f5

Fix typo in PCI bridge code.


git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@2470 c046a42c-6fe2-441c-8c8c-71466251a162
Showing 1 changed file with 1 additions and 1 deletions
hw/pci.c
@@ -587,7 +587,7 @@ PCIBus *pci_bridge_init(PCIBus *bus, int devfn, uint32_t id, @@ -587,7 +587,7 @@ PCIBus *pci_bridge_init(PCIBus *bus, int devfn, uint32_t id,
587 s = (PCIBridge *)pci_register_device(bus, name, sizeof(PCIBridge), 587 s = (PCIBridge *)pci_register_device(bus, name, sizeof(PCIBridge),
588 devfn, NULL, pci_bridge_write_config); 588 devfn, NULL, pci_bridge_write_config);
589 s->dev.config[0x00] = id >> 16; 589 s->dev.config[0x00] = id >> 16;
590 - s->dev.config[0x01] = id > 24; 590 + s->dev.config[0x01] = id >> 24;
591 s->dev.config[0x02] = id; // device_id 591 s->dev.config[0x02] = id; // device_id
592 s->dev.config[0x03] = id >> 8; 592 s->dev.config[0x03] = id >> 8;
593 s->dev.config[0x04] = 0x06; // command = bus master, pci mem 593 s->dev.config[0x04] = 0x06; // command = bus master, pci mem