Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1LJ5jb-0005he-Nr for qemu-devel@nongnu.org; Sat, 03 Jan 2009 07:36:07 -0500 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1LJ5jb-0005gL-4N for qemu-devel@nongnu.org; Sat, 03 Jan 2009 07:36:07 -0500 Received: from [199.232.76.173] (port=47020 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1LJ5ja-0005gD-Qi for qemu-devel@nongnu.org; Sat, 03 Jan 2009 07:36:06 -0500 Received: from savannah.gnu.org ([199.232.41.3]:50315 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 1LJ5ja-0007P8-Dm for qemu-devel@nongnu.org; Sat, 03 Jan 2009 07:36:06 -0500 Received: from cvs.savannah.gnu.org ([199.232.41.69]) by sv.gnu.org with esmtp (Exim 4.63) (envelope-from ) id 1LJ5jZ-00079S-S1 for qemu-devel@nongnu.org; Sat, 03 Jan 2009 12:36:05 +0000 Received: from aurel32 by cvs.savannah.gnu.org with local (Exim 4.63) (envelope-from ) id 1LJ5jZ-00079N-LU for qemu-devel@nongnu.org; Sat, 03 Jan 2009 12:36:05 +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: Sat, 03 Jan 2009 12:36:05 +0000 Subject: [Qemu-devel] [6150] tcg: remove tcg_global_reg2_new_hack() 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: 6150 http://svn.sv.gnu.org/viewvc/?view=rev&root=qemu&revision=6150 Author: aurel32 Date: 2009-01-03 12:36:05 +0000 (Sat, 03 Jan 2009) Log Message: ----------- tcg: remove tcg_global_reg2_new_hack() This patch removes the unused tcg_global_reg2_new_hack() function, which was added in r4438 to work around a register shortage problem regarding dyngen. The only ever user of this function was removed in r4577. Signed-off-by: Stuart Brady Signed-off-by: Aurelien Jarno Modified Paths: -------------- trunk/tcg/tcg.c trunk/tcg/tcg.h Modified: trunk/tcg/tcg.c =================================================================== --- trunk/tcg/tcg.c 2009-01-03 12:35:57 UTC (rev 6149) +++ trunk/tcg/tcg.c 2009-01-03 12:36:05 UTC (rev 6150) @@ -313,43 +313,6 @@ return MAKE_TCGV_I64(idx); } -#if TCG_TARGET_REG_BITS == 32 -/* temporary hack to avoid register shortage for tcg_qemu_st64() */ -TCGv_i64 tcg_global_reg2_new_hack(TCGType type, int reg1, int reg2, - const char *name) -{ - TCGContext *s = &tcg_ctx; - TCGTemp *ts; - int idx; - char buf[64]; - - if (type != TCG_TYPE_I64) - tcg_abort(); - idx = s->nb_globals; - tcg_temp_alloc(s, s->nb_globals + 2); - ts = &s->temps[s->nb_globals]; - ts->base_type = type; - ts->type = TCG_TYPE_I32; - ts->fixed_reg = 1; - ts->reg = reg1; - pstrcpy(buf, sizeof(buf), name); - pstrcat(buf, sizeof(buf), "_0"); - ts->name = strdup(buf); - - ts++; - ts->base_type = type; - ts->type = TCG_TYPE_I32; - ts->fixed_reg = 1; - ts->reg = reg2; - pstrcpy(buf, sizeof(buf), name); - pstrcat(buf, sizeof(buf), "_1"); - ts->name = strdup(buf); - - s->nb_globals += 2; - return MAKE_TCGV_I64(idx); -} -#endif - static inline int tcg_global_mem_new_internal(TCGType type, int reg, tcg_target_long offset, const char *name) Modified: trunk/tcg/tcg.h =================================================================== --- trunk/tcg/tcg.h 2009-01-03 12:35:57 UTC (rev 6149) +++ trunk/tcg/tcg.h 2009-01-03 12:36:05 UTC (rev 6150) @@ -319,8 +319,6 @@ void tcg_set_frame(TCGContext *s, int reg, tcg_target_long start, tcg_target_long size); -TCGv_i64 tcg_global_reg2_new_hack(TCGType type, int reg1, int reg2, - const char *name); TCGv_i32 tcg_global_reg_new_i32(int reg, const char *name); TCGv_i32 tcg_global_mem_new_i32(int reg, tcg_target_long offset,