aboutsummaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorDavid Gibson <david@gibson.dropbear.id.au>2016-10-19 21:49:39 +1100
committerDavid Gibson <david@gibson.dropbear.id.au>2016-10-28 09:38:27 +1100
commit9ff50be2ffb3c116811cfc63dd1fa0ef8c4a9c75 (patch)
treef3cb38fbb6c85d90c2708b2989a7a37ab5a216a0 /tests
parenta7b85b60623a862e2c55d5a6cd2e17f5fc26b256 (diff)
downloadqemu-9ff50be2ffb3c116811cfc63dd1fa0ef8c4a9c75.zip
qemu-9ff50be2ffb3c116811cfc63dd1fa0ef8c4a9c75.tar.gz
qemu-9ff50be2ffb3c116811cfc63dd1fa0ef8c4a9c75.tar.bz2
tests: Adjust tco-test to use qpci_legacy_iomap()
Avoid tco-test making assumptions about the internal format of the address tokens passed to PCI IO accessors, by using the new qpci_legacy_iomap() function. Signed-off-by: David Gibson <david@gibson.dropbear.id.au> Reviewed-by: Laurent Vivier <lvivier@redhat.com> Reviewed-by: Greg Kurz <groug@kaod.org>
Diffstat (limited to 'tests')
-rw-r--r--tests/tco-test.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/tco-test.c b/tests/tco-test.c
index 0d201b1..129577d 100644
--- a/tests/tco-test.c
+++ b/tests/tco-test.c
@@ -70,7 +70,7 @@ static void test_init(TestData *d)
/* set Root Complex BAR */
qpci_config_writel(d->dev, ICH9_LPC_RCBA, RCBA_BASE_ADDR | 0x1);
- d->tco_io_base = (void *)((uintptr_t)PM_IO_BASE_ADDR + 0x60);
+ d->tco_io_base = qpci_legacy_iomap(d->dev, PM_IO_BASE_ADDR + 0x60);
}
static void stop_tco(const TestData *d)