qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Qemu-devel] [PATCH RESEND] tcg/ppc64: Prepare support for Little Endian


From: Andreas Färber
Subject: [Qemu-devel] [PATCH RESEND] tcg/ppc64: Prepare support for Little Endian ppc64 hosts
Date: Fri, 28 Mar 2014 17:13:20 +0100

Don't hardcode TCG_TARGET_WORDS_BIGENDIAN.

Signed-off-by: Andreas Färber <address@hidden>
---
 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

[Prev in Thread] Current Thread [Next in Thread]