Revision 5084bca1
b/hw/pci.c | ||
---|---|---|
161 | 161 |
void pci_bus_new_inplace(PCIBus *bus, DeviceState *parent, |
162 | 162 |
const char *name, int devfn_min) |
163 | 163 |
{ |
164 |
static int nbus = 0; |
|
165 |
|
|
166 | 164 |
qbus_create_inplace(&bus->qbus, &pci_bus_info, parent, name); |
167 | 165 |
bus->devfn_min = devfn_min; |
168 | 166 |
|
... | ... | |
170 | 168 |
QLIST_INIT(&bus->child); |
171 | 169 |
pci_host_bus_register(0, bus); /* for now only pci domain 0 is supported */ |
172 | 170 |
|
173 |
vmstate_register(nbus++, &vmstate_pcibus, bus);
|
|
171 |
vmstate_register(-1, &vmstate_pcibus, bus);
|
|
174 | 172 |
qemu_register_reset(pci_bus_reset, bus); |
175 | 173 |
} |
176 | 174 |
|
Also available in: Unified diff