Received: from [140.186.70.92] (port=41912 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PcnIZ-0004vK-5J for qemu-devel@nongnu.org; Tue, 11 Jan 2011 18:06:49 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1PcnIR-0007r5-KJ for qemu-devel@nongnu.org; Tue, 11 Jan 2011 18:06:42 -0500 Received: from hall.aurel32.net ([88.191.126.93]:44747) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1PcnIR-0007qk-D7 for qemu-devel@nongnu.org; Tue, 11 Jan 2011 18:06:35 -0500 Date: Wed, 12 Jan 2011 00:06:33 +0100 From: Aurelien Jarno Subject: Re: [Qemu-devel] [PATCH 1/4] target-arm: Remove redundant setting of IT bits before Thumb SWI Message-ID: <20110111230633.GD2577@volta.aurel32.net> References: <1294701112-14071-1-git-send-email-peter.maydell@linaro.org> <1294701112-14071-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: <1294701112-14071-2-git-send-email-peter.maydell@linaro.org> List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Peter Maydell Cc: qemu-devel@nongnu.org On Mon, Jan 10, 2011 at 11:11:49PM +0000, Peter Maydell wrote: > Remove a redundant call to gen_set_condexec() in the translation of Thumb > mode SWI. (SWI and WFI generate "exceptions" which happen after the > execution of the instruction, ie when PC and IT bits have updated. > So the condexec bits at this point are not correct. However, the code > that handles finishing the translation of the TB will write the correct > value of the condexec bits later, so the only effect was that a conditional > Thumb SWI would generate slightly worse code than necessary.) > > Signed-off-by: Peter Maydell > --- > target-arm/translate.c | 1 - > 1 files changed, 0 insertions(+), 1 deletions(-) Reviewed-by: Aurelien Jarno > diff --git a/target-arm/translate.c b/target-arm/translate.c > index 2ce82f3..4abece1 100644 > --- a/target-arm/translate.c > +++ b/target-arm/translate.c > @@ -9014,7 +9014,6 @@ static void disas_thumb_insn(CPUState *env, DisasContext *s) > > if (cond == 0xf) { > /* swi */ > - gen_set_condexec(s); > gen_set_pc_im(s->pc); > s->is_jmp = DISAS_SWI; > break; > -- > 1.7.1 > > > -- Aurelien Jarno GPG: 1024D/F1BCDB73 aurelien@aurel32.net http://www.aurel32.net