Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.33) id 1BvKAb-0000uk-Hy for qemu-devel@nongnu.org; Thu, 12 Aug 2004 14:19:21 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.33) id 1BvKAZ-0000uU-Nw for qemu-devel@nongnu.org; Thu, 12 Aug 2004 14:19:21 -0400 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.33) id 1BvKAZ-0000uK-MD for qemu-devel@nongnu.org; Thu, 12 Aug 2004 14:19:19 -0400 Received: from [62.241.160.193] (helo=pengo.systems.pipex.net) by monty-python.gnu.org with esmtp (Exim 4.34) id 1BvK6O-00020r-Kd for qemu-devel@nongnu.org; Thu, 12 Aug 2004 14:15:00 -0400 From: Paul Brook Subject: Re: [Qemu-devel] PowerPC 970/G5 suggestion/request Date: Thu, 12 Aug 2004 19:14:57 +0100 References: <23AE9EA6-EC86-11D8-A7D2-000A95D874F4@mac.com> In-Reply-To: <23AE9EA6-EC86-11D8-A7D2-000A95D874F4@mac.com> MIME-Version: 1.0 Content-Disposition: inline Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Message-Id: <200408121914.57067.paul@codesourcery.com> Reply-To: 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 Thursday 12 August 2004 18:36, Kai Cherry wrote: > Hi... > > I'd like to know what the maintainers et al would think of having the > 970 as a different cpu like the Sparc and i386's. > > I ask this because it really does make a huge, measurable difference if > or not code is targeted to that cpu. Apple has several documents on > this, and what assembler instructions should be used, changed or > avoided altogether, as well as notes on why stuff really needs to be > aligned "correctly" so as not to waste huge amounts of cycles. > > Is this feasible? Can the code generators/re-compiler in qemu be > modified without too much pain to generate code closer to Apple's > recommendations at http://developer.apple.com/technotes/tn/tn2087.html > > Thanks in advance for any thoughts on this, AFAIK Qemu doesn't do any optimization between the sussessive micro-ops. There's generally very little scope for optimization of the code of the individual ops, and that should already be done by gcc anyway. Adding some sort of optimization pass over the generated code/op stream might speed up emulation. This isn't specific to the G5 though. The same applies for pretty much all modern CPUs, including the G4. Paul