The TCG translation for the ARM setend instruction for user level binaries is empty. A binary which just prints "hello world" but inverts the endianness to big endian at the beginning of main gives a segmentation fault on native ARM but prints out hello world on qemu-arm.
So does QEMU continue under the little endian setting even after encountering a setend be instruction? And if so, isn't it incorrect? Rajat.