From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Kq8Ft-0002XW-AZ for qemu-devel@nongnu.org; Wed, 15 Oct 2008 11:25:45 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1Kq8Fr-0002Wf-P1 for qemu-devel@nongnu.org; Wed, 15 Oct 2008 11:25:44 -0400 Received: from [199.232.76.173] (port=45664 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Kq8Fr-0002Wb-Fh for qemu-devel@nongnu.org; Wed, 15 Oct 2008 11:25:43 -0400 Received: from mail.codesourcery.com ([65.74.133.4]:60900) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1Kq8Fr-0007gs-5Z for qemu-devel@nongnu.org; Wed, 15 Oct 2008 11:25:43 -0400 From: Paul Brook Subject: Re: [Qemu-devel] [PATCH][ppc] reorganize register set for SPE + TCG Date: Wed, 15 Oct 2008 16:25:35 +0100 References: <20081015142237.GN18389@codesourcery.com> In-Reply-To: <20081015142237.GN18389@codesourcery.com> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200810151625.38238.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 Cc: Nathan Froyd On Wednesday 15 October 2008, Nathan Froyd wrote: > The (large, invasive) patch below is a preparation patch for converting > (most) SPE instructions to use TCG. The rationale is that your ordinary > SPE instruction deals with three 64-bit quantaties (and a potential > 64-bit accumulator). In the current implementation, it's extremely > laborious/difficult to pass those 64-bit quantaties to helpers, since > the high/low words for SPE registers are not contiguous in the > environment. (TCG helpers for SPE instructions are not yet implemented, > but they will be necessary as part of the total conversion to TCG.) Constructing and passing 64-bit arguments from a pair of 32-bit values should be fairly simple with TCG. There's no reason to pass low and high halves of a value separately. > I don't know if the introduction of so many tcg_global_mem_new's will be > detrimental to TCG's performance, but I will leave comment on that to > somebody more expert than I. I'm not sure if tcg variables are allowed to overlap. I suspect requiring they be unique simplifies code generation, but don't know if the current TCG code takes care of this. Paul