summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLaurent Vivier2017-01-05 16:29:46 +0100
committerDavid Gibson2017-01-31 00:10:13 +0100
commitb84541693b373112d30e54c42815d7b6d2623fd6 (patch)
treea4c0ea214a0600f696cbf81595af88e7854acfbe
parentqtest: add display-vga-test to ppc64 (diff)
downloadqemu-b84541693b373112d30e54c42815d7b6d2623fd6.tar.gz
qemu-b84541693b373112d30e54c42815d7b6d2623fd6.tar.xz
qemu-b84541693b373112d30e54c42815d7b6d2623fd6.zip
libqos: fix spapr qpci_map()
Signed-off-by: Laurent Vivier <lvivier@redhat.com> Signed-off-by: David Gibson <david@gibson.dropbear.id.au>
-rw-r--r--tests/libqos/pci-spapr.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/libqos/pci-spapr.c b/tests/libqos/pci-spapr.c
index 1e5d015bd4..2043f1e123 100644
--- a/tests/libqos/pci-spapr.c
+++ b/tests/libqos/pci-spapr.c
@@ -193,8 +193,8 @@ QPCIBus *qpci_init_spapr(QGuestAllocator *alloc)
ret->pio.size = SPAPR_PCI_IO_WIN_SIZE;
/* 32-bit portion of the MMIO window is at PCI address 2..4 GiB */
- ret->mmio32_cpu_base = SPAPR_PCI_BASE + SPAPR_PCI_MMIO32_WIN_SIZE;
- ret->mmio32.pci_base = 0x80000000; /* 2 GiB */
+ ret->mmio32_cpu_base = SPAPR_PCI_BASE;
+ ret->mmio32.pci_base = SPAPR_PCI_MMIO32_WIN_SIZE;
ret->mmio32.size = SPAPR_PCI_MMIO32_WIN_SIZE;
ret->bus.pio_alloc_ptr = 0xc000;