PCI: fix multiple bridge problems
authorBlue Swirl <blauwirbel@gmail.com>
Sat, 6 Feb 2010 09:20:13 +0000 (09:20 +0000)
committerBlue Swirl <blauwirbel@gmail.com>
Sat, 6 Feb 2010 09:20:13 +0000 (09:20 +0000)
commitaea6584de72a2200dcd79895c68a95f2d455a609
tree467ea9f4af45af4234b48fb8c5c6fff453b0190e
parent4364a4d6398c52b8c6ab7336c8ed90c24e6d704a
PCI: fix multiple bridge problems

When several PCI bridges were in use, monitor command "info pci" would
enter into infinite loop. Buses behind the bridge were not discoverable
because secondary and subordinate bus numbers were not used properly.
Other buses were not found because bus search terminated on first miss.

Signed-off-by: Blue Swirl <blauwirbel@gmail.com>
hw/pci.c