From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1LIOEW-0000Bj-NT for qemu-devel@nongnu.org; Thu, 01 Jan 2009 09:09:08 -0500 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1LIOEV-0000BX-73 for qemu-devel@nongnu.org; Thu, 01 Jan 2009 09:09:07 -0500 Received: from [199.232.76.173] (port=52788 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1LIOEV-0000BU-2M for qemu-devel@nongnu.org; Thu, 01 Jan 2009 09:09:07 -0500 Received: from savannah.gnu.org ([199.232.41.3]:43060 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 1LIOEU-0004cg-PH for qemu-devel@nongnu.org; Thu, 01 Jan 2009 09:09:06 -0500 Received: from cvs.savannah.gnu.org ([199.232.41.69]) by sv.gnu.org with esmtp (Exim 4.63) (envelope-from ) id 1LIOEU-0005RV-5x for qemu-devel@nongnu.org; Thu, 01 Jan 2009 14:09:06 +0000 Received: from aurel32 by cvs.savannah.gnu.org with local (Exim 4.63) (envelope-from ) id 1LIOET-0005Qu-Nw for qemu-devel@nongnu.org; Thu, 01 Jan 2009 14:09:06 +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: Thu, 01 Jan 2009 14:09:05 +0000 Subject: [Qemu-devel] [6146] tcg_temp_local_new should take no parameter 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: 6146 http://svn.sv.gnu.org/viewvc/?view=rev&root=qemu&revision=6146 Author: aurel32 Date: 2009-01-01 14:09:05 +0000 (Thu, 01 Jan 2009) Log Message: ----------- tcg_temp_local_new should take no parameter This patch removes useless type information in some calls to tcg_temp_local_new. It also removes the parameter from the macro declaration; if a target has to use a specific non-default size then it should use tcg_temp_local_new_{i32,i64}. Signed-off-by: Laurent Desnogues Signed-off-by: Aurelien Jarno Modified Paths: -------------- trunk/target-ppc/translate.c trunk/target-sh4/translate.c trunk/tcg/tcg-op.h Modified: trunk/target-ppc/translate.c =================================================================== --- trunk/target-ppc/translate.c 2009-01-01 13:03:36 UTC (rev 6145) +++ trunk/target-ppc/translate.c 2009-01-01 14:09:05 UTC (rev 6146) @@ -6350,7 +6350,7 @@ TCGv_i32 t0 = tcg_temp_local_new_i32(); \ TCGv_i32 t1 = tcg_temp_local_new_i32(); \ TCGv_i32 t2 = tcg_temp_local_new_i32(); \ - TCGv_i64 t3 = tcg_temp_local_new(TCG_TYPE_I64); \ + TCGv_i64 t3 = tcg_temp_local_new(); \ tcg_gen_trunc_i64_i32(t0, cpu_gpr[rA(ctx->opcode)]); \ tcg_gen_trunc_i64_i32(t2, cpu_gpr[rB(ctx->opcode)]); \ tcg_op(t0, t0, t2); \ Modified: trunk/target-sh4/translate.c =================================================================== --- trunk/target-sh4/translate.c 2009-01-01 13:03:36 UTC (rev 6145) +++ trunk/target-sh4/translate.c 2009-01-01 14:09:05 UTC (rev 6146) @@ -785,8 +785,8 @@ { int label1 = gen_new_label(); int label2 = gen_new_label(); - TCGv cmp1 = tcg_temp_local_new(TCG_TYPE_I32); - TCGv cmp2 = tcg_temp_local_new(TCG_TYPE_I32); + TCGv cmp1 = tcg_temp_local_new(); + TCGv cmp2 = tcg_temp_local_new(); tcg_gen_xor_i32(cmp1, REG(B7_4), REG(B11_8)); tcg_gen_andi_i32(cmp2, cmp1, 0xff000000); tcg_gen_brcondi_i32(TCG_COND_EQ, cmp2, 0, label1); @@ -935,7 +935,7 @@ int label2 = gen_new_label(); int label3 = gen_new_label(); int label4 = gen_new_label(); - TCGv shift = tcg_temp_local_new(TCG_TYPE_I32); + TCGv shift = tcg_temp_local_new(); tcg_gen_brcondi_i32(TCG_COND_LT, REG(B7_4), 0, label1); /* Rm positive, shift to the left */ tcg_gen_andi_i32(shift, REG(B7_4), 0x1f); @@ -966,7 +966,7 @@ int label1 = gen_new_label(); int label2 = gen_new_label(); int label3 = gen_new_label(); - TCGv shift = tcg_temp_local_new(TCG_TYPE_I32); + TCGv shift = tcg_temp_local_new(); tcg_gen_brcondi_i32(TCG_COND_LT, REG(B7_4), 0, label1); /* Rm positive, shift to the left */ tcg_gen_andi_i32(shift, REG(B7_4), 0x1f); @@ -1645,9 +1645,9 @@ case 0x401b: /* tas.b @Rn */ { TCGv addr, val; - addr = tcg_temp_local_new(TCG_TYPE_I32); + addr = tcg_temp_local_new(); tcg_gen_mov_i32(addr, REG(B11_8)); - val = tcg_temp_local_new(TCG_TYPE_I32); + val = tcg_temp_local_new(); tcg_gen_qemu_ld8u(val, addr, ctx->memidx); gen_cmp_imm(TCG_COND_EQ, val, 0); tcg_gen_ori_i32(val, val, 0x80); Modified: trunk/tcg/tcg-op.h =================================================================== --- trunk/tcg/tcg-op.h 2009-01-01 13:03:36 UTC (rev 6145) +++ trunk/tcg/tcg-op.h 2009-01-01 14:09:05 UTC (rev 6146) @@ -1693,7 +1693,7 @@ #define tcg_temp_new() tcg_temp_new_i32() #define tcg_global_reg_new tcg_global_reg_new_i32 #define tcg_global_mem_new tcg_global_mem_new_i32 -#define tcg_temp_local_new(t) tcg_temp_local_new_i32() +#define tcg_temp_local_new() tcg_temp_local_new_i32() #define tcg_temp_free tcg_temp_free_i32 #define tcg_gen_qemu_ldst_op tcg_gen_op3i_i32 #define tcg_gen_qemu_ldst_op_i64 tcg_gen_qemu_ldst_op_i64_i32 @@ -1704,7 +1704,7 @@ #define tcg_temp_new() tcg_temp_new_i64() #define tcg_global_reg_new tcg_global_reg_new_i64 #define tcg_global_mem_new tcg_global_mem_new_i64 -#define tcg_temp_local_new(t) tcg_temp_local_new_i64() +#define tcg_temp_local_new() tcg_temp_local_new_i64() #define tcg_temp_free tcg_temp_free_i64 #define tcg_gen_qemu_ldst_op tcg_gen_op3i_i64 #define tcg_gen_qemu_ldst_op_i64 tcg_gen_qemu_ldst_op_i64_i64