Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Lrfcz-0004WD-GR for qemu-devel@nongnu.org; Wed, 08 Apr 2009 17:48:13 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1Lrfcy-0004VD-Nf for qemu-devel@nongnu.org; Wed, 08 Apr 2009 17:48:12 -0400 Received: from [199.232.76.173] (port=51486 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Lrfcy-0004Uz-F1 for qemu-devel@nongnu.org; Wed, 08 Apr 2009 17:48:12 -0400 Received: from savannah.gnu.org ([199.232.41.3]:40124 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 1Lrfcy-0003r9-4u for qemu-devel@nongnu.org; Wed, 08 Apr 2009 17:48:12 -0400 Received: from cvs.savannah.gnu.org ([199.232.41.69]) by sv.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1Lrfcx-0002sF-Cr for qemu-devel@nongnu.org; Wed, 08 Apr 2009 21:48:11 +0000 Received: from aurel32 by cvs.savannah.gnu.org with local (Exim 4.69) (envelope-from ) id 1Lrfcw-0002s9-VM for qemu-devel@nongnu.org; Wed, 08 Apr 2009 21:48:11 +0000 MIME-Version: 1.0 Errors-To: aurel32 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit From: Aurelien Jarno Message-Id: Date: Wed, 08 Apr 2009 21:48:11 +0000 Subject: [Qemu-devel] [7044] target-mips: optimize gen_flt3_ldst() 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: 7044 http://svn.sv.gnu.org/viewvc/?view=rev&root=qemu&revision=7044 Author: aurel32 Date: 2009-04-08 21:48:10 +0000 (Wed, 08 Apr 2009) Log Message: ----------- target-mips: optimize gen_flt3_ldst() Signed-off-by: Aurelien Jarno Modified Paths: -------------- trunk/target-mips/translate.c Modified: trunk/target-mips/translate.c =================================================================== --- trunk/target-mips/translate.c 2009-04-08 21:48:02 UTC (rev 7043) +++ trunk/target-mips/translate.c 2009-04-08 21:48:10 UTC (rev 7044) @@ -1124,7 +1124,7 @@ int base, int16_t offset) { const char *opn = "flt_ldst"; - TCGv t0 = tcg_temp_local_new(); + TCGv t0 = tcg_temp_new(); if (base == 0) { tcg_gen_movi_tl(t0, offset); @@ -7152,8 +7152,8 @@ { const char *opn = "extended float load/store"; int store = 0; - TCGv t0 = tcg_temp_local_new(); - TCGv t1 = tcg_temp_local_new(); + TCGv t0 = tcg_temp_new(); + TCGv t1 = tcg_temp_new(); if (base == 0) { gen_load_gpr(t0, index); @@ -7165,6 +7165,7 @@ } /* Don't do NOP if destination is zero: we must perform the actual memory access. */ + save_cpu_state(ctx, 0); switch (opc) { case OPC_LWXC1: check_cop1x(ctx); @@ -7241,12 +7242,6 @@ opn = "suxc1"; store = 1; break; - default: - MIPS_INVAL(opn); - generate_exception(ctx, EXCP_RI); - tcg_temp_free(t0); - tcg_temp_free(t1); - return; } tcg_temp_free(t0); tcg_temp_free(t1);