From: Mark McLoughlin <markmc@redhat.com>
To: qemu-devel@nongnu.org
Cc: Pavel Roskin <proski@gnu.org>,
Glauber de Oliveira Costa <gcosta@redhat.com>
Subject: Re: [Qemu-devel] [6967] Temporary workaround for ppc on ppc
Date: Mon, 08 Jun 2009 18:23:21 +0100 [thread overview]
Message-ID: <1244481801.3632.71.camel@blaa> (raw)
In-Reply-To: <E1LpBXs-0001bP-FG@cvs.savannah.gnu.org>
On Thu, 2009-04-02 at 01:16 +0000, malc wrote:
> Revision: 6967
> http://svn.sv.gnu.org/viewvc/?view=rev&root=qemu&revision=6967
> Author: malc
> Date: 2009-04-02 01:16:39 +0000 (Thu, 02 Apr 2009)
> Log Message:
> -----------
> Temporary workaround for ppc on ppc
>
> target-ppc/translate.c puts values of type opcode_t into .opcodes
> section, using GCC extension to do so, and hoping that this will make
> them appear contiguously and in the source order in the resulting
> executable. This assumption is not safe and is known to be violated
> with certain versions of GCC, certain flags passed to it and on
> certain platforms (gcc 4.3.0, -O and PPC/PPC64 for instance)
>
> The workaround consists of adding -fno-unit-at-a-time to the list of
> GCC command line options while building PPC translate.o on a PPC.
>
> Modified Paths:
> --------------
> trunk/Makefile.target
>
> Modified: trunk/Makefile.target
> ===================================================================
> --- trunk/Makefile.target 2009-04-01 23:10:46 UTC (rev 6966)
> +++ trunk/Makefile.target 2009-04-02 01:16:39 UTC (rev 6967)
> @@ -84,6 +84,10 @@
> HELPER_CFLAGS+=-fomit-frame-pointer
> endif
>
> +ifeq ($(subst ppc64,ppc,$(ARCH))$(TARGET_BASE_ARCH),ppcppc)
> +translate.o: CFLAGS := $(CFLAGS) $(call cc-option, $(CFLAGS), -fno-unit-at-a-time,)
> +endif
> +
> ifeq ($(ARCH),sparc)
> CFLAGS+=-ffixed-g2 -ffixed-g3
> ifneq ($(CONFIG_SOLARIS),yes)
>
Could we get this applied to the stable branch? It goes some way to
fixing qemu-system-ppc on a ppc host in Fedora 11:
https://bugzilla.redhat.com/504273
Cheers,
Mark.
next prev parent reply other threads:[~2009-06-08 17:23 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-04-02 1:16 [Qemu-devel] [6967] Temporary workaround for ppc on ppc malc
2009-04-02 17:18 ` Blue Swirl
2009-04-02 18:03 ` malc
2009-04-02 18:18 ` Blue Swirl
2009-04-02 21:01 ` malc
2009-06-08 17:23 ` Mark McLoughlin [this message]
2009-06-08 18:26 ` malc
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=1244481801.3632.71.camel@blaa \
--to=markmc@redhat.com \
--cc=gcosta@redhat.com \
--cc=proski@gnu.org \
--cc=qemu-devel@nongnu.org \
/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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.