diff options
author | Michael S. Tsirkin | 2013-11-06 19:23:26 +0100 |
---|---|---|
committer | Michael S. Tsirkin | 2013-12-10 11:29:56 +0100 |
commit | cf252e5173e46aa4956b88a95fd09ef7eb38b8a6 (patch) | |
tree | eb98a68265d685f27c3b8c86ea3d22b13835b0dc /hw/pci | |
parent | MAINTAINERS: update X86 machine entry (diff) | |
download | qemu-cf252e5173e46aa4956b88a95fd09ef7eb38b8a6.tar.gz qemu-cf252e5173e46aa4956b88a95fd09ef7eb38b8a6.tar.xz qemu-cf252e5173e46aa4956b88a95fd09ef7eb38b8a6.zip |
pci: fix address space size for bridge
Address space size for bridge should be full 64 bit,
so we should use UINT64_MAX not INT64_MAX as it's size.
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
Diffstat (limited to 'hw/pci')
-rw-r--r-- | hw/pci/pci_bridge.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/hw/pci/pci_bridge.c b/hw/pci/pci_bridge.c index 290ababb8b..f72872ebcf 100644 --- a/hw/pci/pci_bridge.c +++ b/hw/pci/pci_bridge.c @@ -372,7 +372,7 @@ int pci_bridge_initfn(PCIDevice *dev, const char *typename) sec_bus->parent_dev = dev; sec_bus->map_irq = br->map_irq ? br->map_irq : pci_swizzle_map_irq_fn; sec_bus->address_space_mem = &br->address_space_mem; - memory_region_init(&br->address_space_mem, OBJECT(br), "pci_bridge_pci", INT64_MAX); + memory_region_init(&br->address_space_mem, OBJECT(br), "pci_bridge_pci", UINT64_MAX); sec_bus->address_space_io = &br->address_space_io; memory_region_init(&br->address_space_io, OBJECT(br), "pci_bridge_io", 65536); br->windows = pci_bridge_region_init(br); |