Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1MDjYY-0004yP-SG for qemu-devel@nongnu.org; Mon, 08 Jun 2009 14:26:50 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1MDjYX-0004w5-Df for qemu-devel@nongnu.org; Mon, 08 Jun 2009 14:26:50 -0400 Received: from [199.232.76.173] (port=60547 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MDjYX-0004vk-3V for qemu-devel@nongnu.org; Mon, 08 Jun 2009 14:26:49 -0400 Received: from fe01x03-cgp.akado.ru ([77.232.31.164]:52570 helo=akado.ru) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1MDjYW-0005vC-9y for qemu-devel@nongnu.org; Mon, 08 Jun 2009 14:26:48 -0400 Date: Mon, 8 Jun 2009 22:26:40 +0400 (MSD) From: malc Subject: Re: [Qemu-devel] [6967] Temporary workaround for ppc on ppc In-Reply-To: <1244481801.3632.71.camel@blaa> Message-ID: References: <1244481801.3632.71.camel@blaa> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Mark McLoughlin Cc: Pavel Roskin , qemu-devel@nongnu.org, Glauber de Oliveira Costa On Mon, 8 Jun 2009, Mark McLoughlin wrote: > 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 I was contemplating replacing it with less far reaching -fno-toplevel-reorder, can you test if it works with whatever F11 is shipping? -- mailto:av1474@comtv.ru