Revision f16c4abf hw/pci.c
b/hw/pci.c | ||
---|---|---|
144 | 144 |
{ |
145 | 145 |
int i; |
146 | 146 |
|
147 |
qemu_put_be32(f, 2); /* PCI device version */
|
|
147 |
qemu_put_be32(f, s->version_id); /* PCI device version */
|
|
148 | 148 |
qemu_put_buffer(f, s->config, 256); |
149 | 149 |
for (i = 0; i < 4; i++) |
150 | 150 |
qemu_put_be32(f, s->irq_state[i]); |
... | ... | |
319 | 319 |
pci_dev->config_write = config_write; |
320 | 320 |
bus->devices[devfn] = pci_dev; |
321 | 321 |
pci_dev->irq = qemu_allocate_irqs(pci_set_irq, pci_dev, 4); |
322 |
pci_dev->version_id = 2; /* Current pci device vmstate version */ |
|
322 | 323 |
return pci_dev; |
323 | 324 |
} |
324 | 325 |
|
Also available in: Unified diff