qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
From: "Andreas Färber" <afaerber@suse.de>
To: qemu-devel@nongnu.org
Cc: "Vassili Karpov (malc)" <av1474@comtv.ru>,
	qemu-ppc@nongnu.org, "Andreas Färber" <afaerber@suse.de>,
	"Richard Henderson" <rth@twiddle.net>
Subject: [Qemu-devel] [PATCH RESEND] tcg/ppc64: Prepare support for Little Endian ppc64 hosts
Date: Fri, 28 Mar 2014 17:13:20 +0100	[thread overview]
Message-ID: <1396023200-991-1-git-send-email-afaerber@suse.de> (raw)

Don't hardcode TCG_TARGET_WORDS_BIGENDIAN.

Signed-off-by: Andreas Färber <afaerber@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	other threads:[~2014-03-28 16:13 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-03-28 16:13 Andreas Färber [this message]
2014-03-28 23:22 ` [Qemu-devel] [PATCH RESEND] tcg/ppc64: Prepare support for Little Endian ppc64 hosts Richard Henderson

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1396023200-991-1-git-send-email-afaerber@suse.de \
    --to=afaerber@suse.de \
    --cc=av1474@comtv.ru \
    --cc=qemu-devel@nongnu.org \
    --cc=qemu-ppc@nongnu.org \
    --cc=rth@twiddle.net \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).