Received: from [140.186.70.92] (port=59822 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Q6P0h-0002k7-V5 for qemu-devel@nongnu.org; Sun, 03 Apr 2011 11:14:52 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Q6OyS-0006io-Fm for qemu-devel@nongnu.org; Sun, 03 Apr 2011 11:12:29 -0400 Received: from hall.aurel32.net ([88.191.126.93]:34174) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Q6OyS-0006iR-6S for qemu-devel@nongnu.org; Sun, 03 Apr 2011 11:12:20 -0400 Date: Sun, 3 Apr 2011 17:12:14 +0200 From: Aurelien Jarno Subject: Re: [Qemu-devel] [PATCH 01/10] target-arm: Make Neon helper routines use correct FP status Message-ID: <20110403151214.GK31037@volta.aurel32.net> References: <1301668243-29886-1-git-send-email-peter.maydell@linaro.org> <1301668243-29886-2-git-send-email-peter.maydell@linaro.org> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-15 Content-Disposition: inline In-Reply-To: List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Peter Maydell Cc: Blue Swirl , qemu-devel@nongnu.org On Sun, Apr 03, 2011 at 12:21:49PM +0100, Peter Maydell wrote: > On 3 April 2011 12:10, Blue Swirl wrote: > > On Sun, Apr 3, 2011 at 1:51 PM, Peter Maydell wrote: > >> But I can submit a patch to do that if it's the right thing. > > > > It's not so much about correctness, but performance. All generated > > code already has access to global env, so passing it via helper > > arguments requires extra instructions which can be avoided. > > Yes; I meant "right thing" in the more general senses of "is best > practice for qemu code" and "causes my patches to be accepted" :-) > > Anyway, how about I do a version of this patch which moves > the affected neon helpers to op_helper.c rather than adding > an env parameter (which would avoid changes that a cleanup > would just have to revert); but leave patch 10 as-is (that's > the one which is touching vfp helpers, but it is just cleanup > which isn't changing how they handle env) ? > > Then I can do a separate patchset to move other helpers, > rather than tangling a code-cleanup patchset with Neon > correctness fixes. > This solution looks fine for me. That said, I am not sure moving everything to op_helper.c is the best solution. I would rather go for compiling *_helper.c with HELPER_CFLAGS, which avoids having one big file which is messy to edit, and long to compile. I leave you choose what you prefer. -- Aurelien Jarno GPG: 1024D/F1BCDB73 aurelien@aurel32.net http://www.aurel32.net