From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1K0iai-0004t8-VQ for qemu-devel@nongnu.org; Mon, 26 May 2008 15:42:45 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1K0iai-0004st-DF for qemu-devel@nongnu.org; Mon, 26 May 2008 15:42:44 -0400 Received: from [199.232.76.173] (port=58516 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1K0iai-0004sq-AY for qemu-devel@nongnu.org; Mon, 26 May 2008 15:42:44 -0400 Received: from savannah.gnu.org ([199.232.41.3]:38925 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 1K0iai-0002XL-6I for qemu-devel@nongnu.org; Mon, 26 May 2008 15:42:44 -0400 Received: from cvs.savannah.gnu.org ([199.232.41.69]) by sv.gnu.org with esmtp (Exim 4.63) (envelope-from ) id 1K0iah-0007VG-Fr for qemu-devel@nongnu.org; Mon, 26 May 2008 19:42:43 +0000 Received: from blueswir1 by cvs.savannah.gnu.org with local (Exim 4.63) (envelope-from ) id 1K0iah-0007VA-1a for qemu-devel@nongnu.org; Mon, 26 May 2008 19:42:43 +0000 MIME-Version: 1.0 Errors-To: blueswir1 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit From: Blue Swirl Message-Id: Date: Mon, 26 May 2008 19:42:43 +0000 Subject: [Qemu-devel] [4589] More TCG type fixes 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: 4589 http://svn.sv.gnu.org/viewvc/?view=rev&root=qemu&revision=4589 Author: blueswir1 Date: 2008-05-26 19:42:42 +0000 (Mon, 26 May 2008) Log Message: ----------- More TCG type fixes Modified Paths: -------------- trunk/target-sparc/translate.c Modified: trunk/target-sparc/translate.c =================================================================== --- trunk/target-sparc/translate.c 2008-05-26 19:11:07 UTC (rev 4588) +++ trunk/target-sparc/translate.c 2008-05-26 19:42:42 UTC (rev 4589) @@ -1648,15 +1648,14 @@ static inline void gen_swap_asi(TCGv dst, TCGv addr, int insn) { - TCGv r_temp, r_asi; + TCGv r_asi; - r_temp = tcg_temp_new(TCG_TYPE_I32); r_asi = gen_get_asi(insn, addr); - tcg_gen_helper_1_4(helper_ld_asi, r_temp, addr, r_asi, + tcg_gen_helper_1_4(helper_ld_asi, cpu_tmp64, addr, r_asi, tcg_const_i32(4), tcg_const_i32(0)); tcg_gen_helper_0_4(helper_st_asi, addr, dst, r_asi, tcg_const_i32(4)); - tcg_gen_extu_i32_tl(dst, r_temp); + tcg_gen_trunc_i64_tl(dst, cpu_tmp64); } static inline void gen_ldda_asi(TCGv lo, TCGv hi, TCGv addr, int insn) @@ -1675,7 +1674,7 @@ { TCGv r_temp, r_asi; - r_temp = tcg_temp_new(TCG_TYPE_I32); + r_temp = tcg_temp_new(TCG_TYPE_TL); gen_movl_reg_TN(rd + 1, r_temp); tcg_gen_helper_1_2(helper_pack64, cpu_tmp64, hi, r_temp); @@ -1731,15 +1730,13 @@ static inline void gen_swap_asi(TCGv dst, TCGv addr, int insn) { int asi; - TCGv r_temp; - r_temp = tcg_temp_new(TCG_TYPE_I32); asi = GET_FIELD(insn, 19, 26); - tcg_gen_helper_1_4(helper_ld_asi, r_temp, addr, tcg_const_i32(asi), + tcg_gen_helper_1_4(helper_ld_asi, cpu_tmp64, addr, tcg_const_i32(asi), tcg_const_i32(4), tcg_const_i32(0)); tcg_gen_helper_0_4(helper_st_asi, addr, dst, tcg_const_i32(asi), tcg_const_i32(4)); - tcg_gen_extu_i32_tl(dst, r_temp); + tcg_gen_trunc_i64_tl(dst, cpu_tmp64); } static inline void gen_ldda_asi(TCGv lo, TCGv hi, TCGv addr, int insn) @@ -1759,7 +1756,7 @@ int asi; TCGv r_temp; - r_temp = tcg_temp_new(TCG_TYPE_I32); + r_temp = tcg_temp_new(TCG_TYPE_TL); gen_movl_reg_TN(rd + 1, r_temp); tcg_gen_helper_1_2(helper_pack64, cpu_tmp64, hi, r_temp); asi = GET_FIELD(insn, 19, 26); @@ -4314,7 +4311,7 @@ ABI32_MASK(cpu_addr); tcg_gen_helper_0_2(helper_check_align, cpu_addr, tcg_const_i32(7)); // XXX remove - r_low = tcg_temp_new(TCG_TYPE_I32); + r_low = tcg_temp_new(TCG_TYPE_TL); gen_movl_reg_TN(rd + 1, r_low); tcg_gen_helper_1_2(helper_pack64, cpu_tmp64, cpu_val, r_low);