summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorAlexey Kardashevskiy <aik@ozlabs.ru>2014-01-13 18:33:53 +1100
committerMichael S. Tsirkin <mst@redhat.com>2014-01-26 13:06:49 +0200
commit084137ddbbb30f5f85298711dc2d501a625d37ab (patch)
tree53f78bec8c6c0f92a3dec6436a37723b0bf6a2ea /tests
parent4500bc98a6aab1734d865afaeade3509eb65b560 (diff)
downloadqemu-084137ddbbb30f5f85298711dc2d501a625d37ab.zip
tests: fix acpi to work on bigendian host
Double endianness convertion make this test failing on POWERPC machine running in big-endian. This fixes the test to success on big-endian host. Signed-off-by: Alexey Kardashevskiy <aik@ozlabs.ru> Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
Diffstat (limited to 'tests')
-rw-r--r--tests/acpi-test.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/tests/acpi-test.c b/tests/acpi-test.c
index 89c4b81fdb..b5ab70a378 100644
--- a/tests/acpi-test.c
+++ b/tests/acpi-test.c
@@ -61,13 +61,13 @@ typedef struct {
field = readb(addr); \
break; \
case 2: \
- field = le16_to_cpu(readw(addr)); \
+ field = readw(addr); \
break; \
case 4: \
- field = le32_to_cpu(readl(addr)); \
+ field = readl(addr); \
break; \
case 8: \
- field = le64_to_cpu(readq(addr)); \
+ field = readq(addr); \
break; \
default: \
g_assert(false); \