Don't hardcode TCG_TARGET_WORDS_BIGENDIAN.

Signed-off-by: Andreas Färber <afaer...@suse.de>
---
 Unfortunately with this fix, execution of ./i386-softmmu/qemu-system-i386
 just gets a SIGSEGV instead of the previous SIGILL on ppc64le.

 This TCG breakage affects acpi-test, failing make check.

 tcg/ppc64/tcg-target.h | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/tcg/ppc64/tcg-target.h b/tcg/ppc64/tcg-target.h
index 7ee50b6..51355a1 100644
--- a/tcg/ppc64/tcg-target.h
+++ b/tcg/ppc64/tcg-target.h
@@ -24,7 +24,9 @@
 #ifndef TCG_TARGET_PPC64 
 #define TCG_TARGET_PPC64 1
 
+#ifndef __LITTLE_ENDIAN__
 #define TCG_TARGET_WORDS_BIGENDIAN
+#endif
 #define TCG_TARGET_NB_REGS 32
 
 typedef enum {
-- 
1.8.4.5


Reply via email to