Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1KFwU8-0004nv-GX for qemu-devel@nongnu.org; Mon, 07 Jul 2008 15:34:52 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1KFwU7-0004ng-Dy for qemu-devel@nongnu.org; Mon, 07 Jul 2008 15:34:52 -0400 Received: from [199.232.76.173] (port=49522 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KFwU7-0004nd-9t for qemu-devel@nongnu.org; Mon, 07 Jul 2008 15:34:51 -0400 Received: from savannah.gnu.org ([199.232.41.3]:35522 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 1KFwU6-0005AV-W5 for qemu-devel@nongnu.org; Mon, 07 Jul 2008 15:34:51 -0400 Received: from cvs.savannah.gnu.org ([199.232.41.69]) by sv.gnu.org with esmtp (Exim 4.63) (envelope-from ) id 1KFwU2-0005ye-6w for qemu-devel@nongnu.org; Mon, 07 Jul 2008 19:34:46 +0000 Received: from blueswir1 by cvs.savannah.gnu.org with local (Exim 4.63) (envelope-from ) id 1KFwU1-0005y0-RQ for qemu-devel@nongnu.org; Mon, 07 Jul 2008 19:34:46 +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, 07 Jul 2008 19:34:45 +0000 Subject: [Qemu-devel] [4854] Fix 64 bit constant generation 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: 4854 http://svn.sv.gnu.org/viewvc/?view=rev&root=qemu&revision=4854 Author: blueswir1 Date: 2008-07-07 19:34:45 +0000 (Mon, 07 Jul 2008) Log Message: ----------- Fix 64 bit constant generation Modified Paths: -------------- trunk/tcg/sparc/tcg-target.c Modified: trunk/tcg/sparc/tcg-target.c =================================================================== --- trunk/tcg/sparc/tcg-target.c 2008-07-07 19:29:49 UTC (rev 4853) +++ trunk/tcg/sparc/tcg-target.c 2008-07-07 19:34:45 UTC (rev 4854) @@ -304,11 +304,10 @@ { #if defined(__sparc_v9__) && !defined(__sparc_v8plus__) if (!check_fit_tl(arg, 32) && (arg & ~0xffffffffULL) != 0) { - // XXX ret may be I5, need another temp - tcg_out_movi_imm32(s, TCG_REG_I5, arg >> 32); - tcg_out_arithi(s, TCG_REG_I5, TCG_REG_I5, 32, SHIFT_SLLX); + tcg_out_movi_imm32(s, TCG_REG_I4, arg >> 32); + tcg_out_arithi(s, TCG_REG_I4, TCG_REG_I4, 32, SHIFT_SLLX); tcg_out_movi_imm32(s, ret, arg); - tcg_out_arith(s, ret, ret, TCG_REG_I5, ARITH_OR); + tcg_out_arith(s, ret, ret, TCG_REG_I4, ARITH_OR); } else #endif tcg_out_movi_imm32(s, ret, arg); @@ -1137,6 +1136,9 @@ tcg_regset_clear(s->reserved_regs); tcg_regset_set_reg(s->reserved_regs, TCG_REG_G0); +#if defined(__sparc_v9__) && !defined(__sparc_v8plus__) + tcg_regset_set_reg(s->reserved_regs, TCG_REG_I4); // for internal use +#endif tcg_regset_set_reg(s->reserved_regs, TCG_REG_I5); // for internal use tcg_regset_set_reg(s->reserved_regs, TCG_REG_I6); tcg_regset_set_reg(s->reserved_regs, TCG_REG_I7);