提交 084137dd 编写于 作者: A Alexey Kardashevskiy 提交者: Michael S. Tsirkin

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: NAlexey Kardashevskiy <aik@ozlabs.ru>
Signed-off-by: NMichael S. Tsirkin <mst@redhat.com>
上级 4500bc98
......@@ -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); \
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册