[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-ppc] qtest tmp105-test endianness issue
From: |
Andreas Färber |
Subject: |
[Qemu-ppc] qtest tmp105-test endianness issue |
Date: |
Sat, 26 Jan 2013 23:12:57 +0100 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:17.0) Gecko/20130105 Thunderbird/17.0.2 |
Hello,
I've found that my tmp105-test fails on Mac OS X ppc(64), i.e. Little
Endian arm-softmmu target and Big Endian host:
GTESTER check-qtest-arm
mipid_reset: Display off
**
ERROR:/Users/andreas/QEMU/qemu/tests/libi2c-imap.c:163:omap_i2c_create:
assertion failed (data == 0x34): (0x00003400 == 0x00000034)
The only other test case that uses memread() is m48t59-test, which uses
size 1 MMIO accesses only. This suggests that Big Endian guest (e.g.,
sparc) and Little Endian host (e.g., x86_64) may cause issues, too.
What is the expected way to handle endianness in qtest? Should
qtest.c:qtest_process_command() be changed? libqtest.c:qtest_memread()?
Or the test itself byteswap and, if so, under which circumstances?
Regards,
Andreas
- [Qemu-ppc] qtest tmp105-test endianness issue,
Andreas Färber <=