OSDN Git Service

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)
commitc021f8e65f5009a5ab5711d9d5326fcab553ef1c
tree467ea9f4af45af4234b48fb8c5c6fff453b0190e
parente1c6bbabee30db2e007e7fcbdaf088c54151f1d0
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