From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.33) id 1CH2Kk-00021M-LE for qemu-devel@nongnu.org; Mon, 11 Oct 2004 11:43:34 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.33) id 1CH2Kj-00020t-OQ for qemu-devel@nongnu.org; Mon, 11 Oct 2004 11:43:33 -0400 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.33) id 1CH2Kj-00020f-L2 for qemu-devel@nongnu.org; Mon, 11 Oct 2004 11:43:33 -0400 Received: from [64.233.170.195] (helo=mproxy.gmail.com) by monty-python.gnu.org with esmtp (Exim 4.34) id 1CH2Dl-0000hk-IH for qemu-devel@nongnu.org; Mon, 11 Oct 2004 11:36:21 -0400 Received: by mproxy.gmail.com with SMTP id 74so303536rnk for ; Mon, 11 Oct 2004 08:36:17 -0700 (PDT) Message-ID: <2ad73a041011083641701e4e@mail.gmail.com> Date: Mon, 11 Oct 2004 12:36:16 -0300 From: =?ISO-8859-1?Q?Andr=E9_Braga?= Subject: Re: [Qemu-devel] Re: compile qemu for a G5 In-Reply-To: <08B0873F-1B8A-11D9-ACC0-0011242E9BF2@aol.com> Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit References: <200410110346.7d6416a3a5f2f@rly-yi05.mx.aol.com> <08B0873F-1B8A-11D9-ACC0-0011242E9BF2@aol.com> Reply-To: =?ISO-8859-1?Q?Andr=E9_Braga?= , qemu-devel@nongnu.org List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org On Mon, 11 Oct 2004 06:32:44 -0700, Fred Hope wrote: > So for my iMac G5 1.8 GHz it would be -mcpu=970 or what? The only > thing I know about the G5 is that it is really the PowerPC 970. Also, > I use this flag when I run ./configure, right? Not the "make" command > itself? -mcpu=power4 is the correct flag. As of January there was a bug in GCC regarding this flag and 64-bit code, so I suggest looking for updates if your xcode tools happen to be somewhat old. Other than that, G5 behaves better if code is aligned to 32 byte boundaries, because of the longer cache lines. Those flags may help: -falign-functions=32, -falign-labels=32, -falign-loops=32, -falign-jumps=32. They will potentially make the executable fairly large, though, which may or may not be a problem for you. Also take a look at these pages and their links: http://developer.apple.com/technotes/tn/tn2087.html http://developer.apple.com/performance/g5optimization.html Back in June there were some issues with the configure file flags being completely ignored by some makefiles, and I sent a patch to the list, but I don't know if they were applied (haven't been able to work with the sources since then), so I suggest looking at the makefiles for places where those flags should appear but end up not showing at all. cheers, A. -- "A year spent in artificial intelligence is enough to make one believe in God" Alan J. Perlis