Commit 425c608c481aee79de0a17e054e3c3bb0a6a530f
Committed by
Blue Swirl
1 parent
6407f373
minor fix of pci_register_bus()
keep first_bus linked list correct. Signed-off-by: Isaku Yamahata <yamahata@valinux.co.jp>
Showing
1 changed file
with
1 additions
and
0 deletions
hw/pci.c
... | ... | @@ -100,6 +100,7 @@ PCIBus *pci_register_bus(pci_set_irq_fn set_irq, pci_map_irq_fn map_irq, |
100 | 100 | bus->irq_opaque = pic; |
101 | 101 | bus->devfn_min = devfn_min; |
102 | 102 | bus->nirq = nirq; |
103 | + bus->next = first_bus; | |
103 | 104 | first_bus = bus; |
104 | 105 | register_savevm("PCIBUS", nbus++, 1, pcibus_save, pcibus_load, bus); |
105 | 106 | return bus; | ... | ... |