From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:45068) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WTZPU-00049F-RI for qemu-devel@nongnu.org; Fri, 28 Mar 2014 12:13:43 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1WTZPJ-0001CC-Aj for qemu-devel@nongnu.org; Fri, 28 Mar 2014 12:13:36 -0400 From: =?UTF-8?q?Andreas=20F=C3=A4rber?= Date: Fri, 28 Mar 2014 17:13:20 +0100 Message-Id: <1396023200-991-1-git-send-email-afaerber@suse.de> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Subject: [Qemu-devel] [PATCH RESEND] tcg/ppc64: Prepare support for Little Endian ppc64 hosts List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Cc: "Vassili Karpov (malc)" , qemu-ppc@nongnu.org, =?UTF-8?q?Andreas=20F=C3=A4rber?= , Richard Henderson Don't hardcode TCG_TARGET_WORDS_BIGENDIAN. Signed-off-by: Andreas F=C3=A4rber --- Unfortunately with this fix, execution of ./i386-softmmu/qemu-system-i38= 6 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=20 #define TCG_TARGET_PPC64 1 =20 +#ifndef __LITTLE_ENDIAN__ #define TCG_TARGET_WORDS_BIGENDIAN +#endif #define TCG_TARGET_NB_REGS 32 =20 typedef enum { --=20 1.8.4.5