Revision 451a4212 hw/pci.c

b/hw/pci.c
587 587
    s = (PCIBridge *)pci_register_device(bus, name, sizeof(PCIBridge), 
588 588
                                         devfn, NULL, pci_bridge_write_config);
589 589
    s->dev.config[0x00] = id >> 16;
590
    s->dev.config[0x01] = id > 24;
590
    s->dev.config[0x01] = id >> 24;
591 591
    s->dev.config[0x02] = id; // device_id
592 592
    s->dev.config[0x03] = id >> 8;
593 593
    s->dev.config[0x04] = 0x06; // command = bus master, pci mem

Also available in: Unified diff