From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1JsBe5-0000do-Q3 for qemu-devel@nongnu.org; Sat, 03 May 2008 02:54:57 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1JsBe3-0000ac-Gb for qemu-devel@nongnu.org; Sat, 03 May 2008 02:54:56 -0400 Received: from [199.232.76.173] (port=37534 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1JsBe3-0000aS-D3 for qemu-devel@nongnu.org; Sat, 03 May 2008 02:54:55 -0400 Received: from savannah.gnu.org ([199.232.41.3] helo=sv.gnu.org) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1JsBe2-0000BS-Vp for qemu-devel@nongnu.org; Sat, 03 May 2008 02:54:55 -0400 Received: from cvs.savannah.gnu.org ([199.232.41.69]) by sv.gnu.org with esmtp (Exim 4.63) (envelope-from ) id 1JsBe1-0001c2-Lv for qemu-devel@nongnu.org; Sat, 03 May 2008 06:54:53 +0000 Received: from edgar_igl by cvs.savannah.gnu.org with local (Exim 4.63) (envelope-from ) id 1JsBe1-0001bs-Bg for qemu-devel@nongnu.org; Sat, 03 May 2008 06:54:53 +0000 MIME-Version: 1.0 Errors-To: edgar_igl Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit From: "Edgar E. Iglesias" Message-Id: Date: Sat, 03 May 2008 06:54:53 +0000 Subject: [Qemu-devel] [4304] CRIS: Do post-increment without going via T0. 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 Revision: 4304 http://svn.sv.gnu.org/viewvc/?view=rev&root=qemu&revision=4304 Author: edgar_igl Date: 2008-05-03 06:54:52 +0000 (Sat, 03 May 2008) Log Message: ----------- CRIS: Do post-increment without going via T0. Modified Paths: -------------- trunk/target-cris/translate.c Modified: trunk/target-cris/translate.c =================================================================== --- trunk/target-cris/translate.c 2008-05-02 22:47:34 UTC (rev 4303) +++ trunk/target-cris/translate.c 2008-05-03 06:54:52 UTC (rev 4304) @@ -958,13 +958,10 @@ } } -static void do_postinc (DisasContext *dc, int size) +static inline void do_postinc (DisasContext *dc, int size) { - if (!dc->postinc) - return; - t_gen_mov_TN_reg(cpu_T[0], dc->op1); - tcg_gen_addi_tl(cpu_T[0], cpu_T[0], size); - t_gen_mov_reg_TN(dc->op1, cpu_T[0]); + if (dc->postinc) + tcg_gen_addi_tl(cpu_R[dc->op1], cpu_R[dc->op1], size); }