[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-ppc] [PATCHv3 05/11] tests: Adjust tco-test to use qpci_legacy_iom
From: |
David Gibson |
Subject: |
[Qemu-ppc] [PATCHv3 05/11] tests: Adjust tco-test to use qpci_legacy_iomap() |
Date: |
Thu, 20 Oct 2016 14:43:08 +1100 |
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 <address@hidden>
Reviewed-by: Laurent Vivier <address@hidden>
---
tests/tco-test.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
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)
--
2.7.4
- [Qemu-ppc] [PATCHv3 00/11] Cleanups to qtest PCI handling, David Gibson, 2016/10/19
- [Qemu-ppc] [PATCHv3 06/11] libqos: Add streaming accessors for PCI MMIO, David Gibson, 2016/10/19
- [Qemu-ppc] [PATCHv3 05/11] tests: Adjust tco-test to use qpci_legacy_iomap(),
David Gibson <=
- [Qemu-ppc] [PATCHv3 10/11] tests: Use qpci_mem{read, write} in ivshmem-test, David Gibson, 2016/10/19
- [Qemu-ppc] [PATCHv3 01/11] libqos: Give qvirtio_config_read*() consistent semantics, David Gibson, 2016/10/19
- [Qemu-ppc] [PATCHv3 02/11] libqos: Handle PCI IO de-multiplexing in common code, David Gibson, 2016/10/19
- [Qemu-ppc] [PATCHv3 04/11] libqos: Better handling of PCI legacy IO, David Gibson, 2016/10/19
- [Qemu-ppc] [PATCHv3 09/11] libqos: Add 64-bit PCI IO accessors, David Gibson, 2016/10/19
- [Qemu-ppc] [PATCHv3 08/11] tests: Clean up IO handling in ide-test, David Gibson, 2016/10/19
- [Qemu-ppc] [PATCHv3 03/11] libqos: Move BAR assignment to common code, David Gibson, 2016/10/19