Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1N80Wj-0004KS-Qd for qemu-devel@nongnu.org; Tue, 10 Nov 2009 18:53:33 -0500 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1N80Wj-0004JG-3D for qemu-devel@nongnu.org; Tue, 10 Nov 2009 18:53:33 -0500 Received: from [199.232.76.173] (port=48647 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1N80Wj-0004J6-1L for qemu-devel@nongnu.org; Tue, 10 Nov 2009 18:53:33 -0500 Received: from hall.aurel32.net ([88.191.82.174]:44415) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1N80Wi-0005cm-Km for qemu-devel@nongnu.org; Tue, 10 Nov 2009 18:53:32 -0500 Date: Wed, 11 Nov 2009 00:53:30 +0100 From: Aurelien Jarno Subject: Re: [Qemu-devel] [PATCH 00/18] target-arm cleanup Message-ID: <20091110235330.GI9052@hall.aurel32.net> References: <5b31733c0907190843k11ead885tc6b4c81b79f7257b@mail.gmail.com> <64E0C9BE-CEC5-44B4-87CE-A918AD8121B1@nokia.com> <761ea48b0910182335v799291a1l755515927e24ee9@mail.gmail.com> <200911102338.49991.paul@codesourcery.com> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-15 Content-Disposition: inline In-Reply-To: <200911102338.49991.paul@codesourcery.com> Sender: Aurelien Jarno List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Paul Brook Cc: Laurent Desnogues , Juha.Riihimaki@nokia.com, qemu-devel@nongnu.org On Tue, Nov 10, 2009 at 11:38:49PM +0000, Paul Brook wrote: > > > Some of the generated tcg code is not very optimal, for example a > > > single vld4.8 instruction can generate over 250 tcg ops. I did some > > > optimizations and got it under 200 but do you think it could be an > > > issue that a single instruction can expand to so many tcg ops? I mean > > > besides the fact that it causes TBs for only one or two guest > > > instructions to be generated. > > > > Fabrice wrote this (tcg/README): > > > > Don't hesitate to use helpers for complicated or seldom used target > > intructions. There is little performance advantage in using TCG to > > implement target instructions taking more than about twenty TCG > > instructions. > > > > How applicable is it, I can't say. It'd probably be a good thing > > to benchmark the two versions, TCG vs helper. > > The problem is that you can not do memory accesses from within a helper > function. > It is something possible, it's done for example for unaligned memory access on MIPS (see for example helper_ldr). -- Aurelien Jarno GPG: 1024D/F1BCDB73 aurelien@aurel32.net http://www.aurel32.net