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 | |
parent | 18e08a55292a57b988df7fa14af2b4dd282a6486 (diff) | |
download | hqemu-f88d7509b444ffa289e5054b34bc6f4800f6b76d.zip hqemu-f88d7509b444ffa289e5054b34bc6f4800f6b76d.tar.gz |
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>
-rw-r--r-- | hw/pci.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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); |