Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1JzjQy-0001Bu-BF for qemu-devel@nongnu.org; Fri, 23 May 2008 22:24:36 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1JzjQx-0001BR-LQ for qemu-devel@nongnu.org; Fri, 23 May 2008 22:24:35 -0400 Received: from [199.232.76.173] (port=56039 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1JzjQx-0001BN-7Q for qemu-devel@nongnu.org; Fri, 23 May 2008 22:24:35 -0400 Received: from savannah.gnu.org ([199.232.41.3]:49438 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 1JzjQv-0006jP-Cq for qemu-devel@nongnu.org; Fri, 23 May 2008 22:24:34 -0400 Received: from cvs.savannah.gnu.org ([199.232.41.69]) by sv.gnu.org with esmtp (Exim 4.63) (envelope-from ) id 1JzjQn-0001oj-TS for qemu-devel@nongnu.org; Sat, 24 May 2008 02:24:26 +0000 Received: from pbrook by cvs.savannah.gnu.org with local (Exim 4.63) (envelope-from ) id 1JzjQn-0001oY-Gp for qemu-devel@nongnu.org; Sat, 24 May 2008 02:24:25 +0000 MIME-Version: 1.0 Errors-To: pbrook Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit From: Paul Brook Message-Id: Date: Sat, 24 May 2008 02:24:25 +0000 Subject: [Qemu-devel] [4553] More TCGv 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: 4553 http://svn.sv.gnu.org/viewvc/?view=rev&root=qemu&revision=4553 Author: pbrook Date: 2008-05-24 02:24:25 +0000 (Sat, 24 May 2008) Log Message: ----------- More TCGv type fixes. Modified Paths: -------------- trunk/target-sparc/translate.c trunk/tcg/tcg-op.h Modified: trunk/target-sparc/translate.c =================================================================== --- trunk/target-sparc/translate.c 2008-05-24 02:22:00 UTC (rev 4552) +++ trunk/target-sparc/translate.c 2008-05-24 02:24:25 UTC (rev 4553) @@ -4401,7 +4401,8 @@ /* V9 stqf, store quad fpreg */ CHECK_FPU_FEATURE(dc, FLOAT128); gen_op_load_fpr_QT0(QFPREG(rd)); - tcg_gen_helper_0_2(helper_stqf, cpu_addr, dc->mem_idx); + tcg_gen_helper_0_2(helper_stqf, cpu_addr, + tcg_const_i32(dc->mem_idx)); break; #else /* !TARGET_SPARC64 */ /* stdfq, store floating point queue */ Modified: trunk/tcg/tcg-op.h =================================================================== --- trunk/tcg/tcg-op.h 2008-05-24 02:22:00 UTC (rev 4552) +++ trunk/tcg/tcg-op.h 2008-05-24 02:24:25 UTC (rev 4553) @@ -56,6 +56,13 @@ *gen_opparam_ptr++ = arg2; } +static inline void tcg_gen_op2ii(int opc, TCGArg arg1, TCGArg arg2) +{ + *gen_opc_ptr++ = opc; + *gen_opparam_ptr++ = arg1; + *gen_opparam_ptr++ = arg2; +} + static inline void tcg_gen_op3(int opc, TCGv arg1, TCGv arg2, TCGv arg3) { *gen_opc_ptr++ = opc; @@ -1406,8 +1413,8 @@ { /* XXX: must really use a 32 bit size for TCGArg in all cases */ #if TARGET_LONG_BITS > TCG_TARGET_REG_BITS - tcg_gen_op2i(INDEX_op_debug_insn_start, - (uint32_t)(pc), (uint32_t)(pc >> 32)); + tcg_gen_op2ii(INDEX_op_debug_insn_start, + (uint32_t)(pc), (uint32_t)(pc >> 32)); #else tcg_gen_op1i(INDEX_op_debug_insn_start, pc); #endif