diff options
| author | Isaku Yamahata <yamahata@valinux.co.jp> | 2009-11-12 14:58:29 +0900 |
|---|---|---|
| committer | Michael S. Tsirkin <mst@redhat.com> | 2009-12-01 17:51:10 +0200 |
| commit | f88d7509b444ffa289e5054b34bc6f4800f6b76d (patch) | |
| tree | 2223c1b0a1318e65519e7b44dc406d1dbd0ca3e5 /hw/pci.c | |
| parent | 18e08a55292a57b988df7fa14af2b4dd282a6486 (diff) | |
| download | focaccia-qemu-f88d7509b444ffa289e5054b34bc6f4800f6b76d.tar.gz focaccia-qemu-f88d7509b444ffa289e5054b34bc6f4800f6b76d.zip | |
pci: fix pci_info_device().
It printed wrong limit value of bridge. This patch fixes it. Signed-off-by: Isaku Yamahata <yamahata@valinux.co.jp> Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
Diffstat (limited to 'hw/pci.c')
| -rw-r--r-- | hw/pci.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/hw/pci.c b/hw/pci.c index 5b3461cd66..040fa767fb 100644 --- a/hw/pci.c +++ b/hw/pci.c @@ -986,7 +986,7 @@ static void pci_info_device(PCIBus *bus, PCIDevice *d) base, limit); base = pci_bridge_get_base(d, PCI_BASE_ADDRESS_SPACE_MEMORY); - limit= pci_config_get_memory_base(d, PCI_BASE_ADDRESS_SPACE_MEMORY); + limit= pci_bridge_get_limit(d, PCI_BASE_ADDRESS_SPACE_MEMORY); monitor_printf(mon, " memory range [0x%08"PRIx64", 0x%08"PRIx64"]\n", base, limit); |