]> git.proxmox.com Git - mirror_qemu.git/blobdiff - tests/libqos/virtio-pci.c
qtest: ask endianness of the target in qtest_init()
[mirror_qemu.git] / tests / libqos / virtio-pci.c
index 18b92b95dc3883e6a464f8207fa0d37a5a4a5a96..6e005c18350349a5bc2d530abae96d5e0c14af57 100644 (file)
@@ -86,7 +86,7 @@ static uint64_t qvirtio_pci_config_readq(QVirtioDevice *d, uint64_t addr)
     int i;
     uint64_t u64 = 0;
 
-    if (qtest_big_endian()) {
+    if (target_big_endian()) {
         for (i = 0; i < 8; ++i) {
             u64 |= (uint64_t)qpci_io_readb(dev->pdev,
                                 (void *)(uintptr_t)addr + i) << (7 - i) * 8;