From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([140.186.70.92]:60727) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QIMzC-0001oy-3T for qemu-devel@nongnu.org; Fri, 06 May 2011 11:30:34 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1QIMzB-0000dD-6N for qemu-devel@nongnu.org; Fri, 06 May 2011 11:30:34 -0400 Received: from mail-qy0-f180.google.com ([209.85.216.180]:33036) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QIMzB-0000d2-3e for qemu-devel@nongnu.org; Fri, 06 May 2011 11:30:33 -0400 Received: by qyk10 with SMTP id 10so2731490qyk.4 for ; Fri, 06 May 2011 08:30:32 -0700 (PDT) MIME-Version: 1.0 In-Reply-To: <201105061509.37212.paul@codesourcery.com> References: <1304686095-30265-1-git-send-email-peter.maydell@linaro.org> <1304686095-30265-5-git-send-email-peter.maydell@linaro.org> <201105061509.37212.paul@codesourcery.com> From: Blue Swirl Date: Fri, 6 May 2011 18:30:12 +0300 Message-ID: Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Subject: Re: [Qemu-devel] [PATCH 4/7] target-arm: Refactor int-float conversions List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Paul Brook Cc: Peter Maydell , qemu-devel@nongnu.org, patches@linaro.org On Fri, May 6, 2011 at 5:09 PM, Paul Brook wrote: >> The Neon versions of int-float conversions need their own helper routine= s >> because they must use the "standard FPSCR" rather than the default one. >> Refactor the helper functions to make it easy to add the neon versions. >> While we're touching the code, move the helpers to op_helper.c so that >> we can use the global env variable rather than passing it as a parameter= . > > IMO this is going in the wrong direction. =C2=A0We should in aiming for l= ess > implicit accesses to cpu state, not more. Performance wise global env variable is faster and the register is always available. Do you mean that we should aim to get rid of special status of global env, so that if no op uses it, it could be discarded to free a register? > Maybe better would be to explicitly pass a pointer the fp status. That wa= y you > don't even need separate VFP and NEON variants of these routines. It would be nice to have generic float functions callable directly as TCG helper.