From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1K1l9H-0003cJ-V2 for qemu-devel@nongnu.org; Thu, 29 May 2008 12:38:44 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1K1l9H-0003Zj-9t for qemu-devel@nongnu.org; Thu, 29 May 2008 12:38:43 -0400 Received: from [199.232.76.173] (port=52018 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1K1l9G-0003ZN-QC for qemu-devel@nongnu.org; Thu, 29 May 2008 12:38:42 -0400 Received: from savannah.gnu.org ([199.232.41.3]:38418 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 1K1l9G-0000De-MM for qemu-devel@nongnu.org; Thu, 29 May 2008 12:38:42 -0400 Received: from cvs.savannah.gnu.org ([199.232.41.69]) by sv.gnu.org with esmtp (Exim 4.63) (envelope-from ) id 1K1l9G-0002Sb-0w for qemu-devel@nongnu.org; Thu, 29 May 2008 16:38:42 +0000 Received: from blueswir1 by cvs.savannah.gnu.org with local (Exim 4.63) (envelope-from ) id 1K1l9F-0002SX-Od for qemu-devel@nongnu.org; Thu, 29 May 2008 16:38:41 +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: Thu, 29 May 2008 16:38:41 +0000 Subject: [Qemu-devel] [4617] Remove unused (for now) reg_REGWPTR (original patch by Glauber Costa ) 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: 4617 http://svn.sv.gnu.org/viewvc/?view=rev&root=qemu&revision=4617 Author: blueswir1 Date: 2008-05-29 16:38:41 +0000 (Thu, 29 May 2008) Log Message: ----------- Remove unused (for now) reg_REGWPTR (original patch by Glauber Costa) Modified Paths: -------------- trunk/cpu-exec.c trunk/target-sparc/exec.h trunk/target-sparc/op_helper.c Modified: trunk/cpu-exec.c =================================================================== --- trunk/cpu-exec.c 2008-05-29 14:34:11 UTC (rev 4616) +++ trunk/cpu-exec.c 2008-05-29 16:38:41 UTC (rev 4617) @@ -246,11 +246,6 @@ { #define DECLARE_HOST_REGS 1 #include "hostregs_helper.h" -#if defined(TARGET_SPARC) -#if defined(reg_REGWPTR) - uint32_t *saved_regwptr; -#endif -#endif int ret, interrupt_request; TranslationBlock *tb; uint8_t *tc_ptr; @@ -273,9 +268,6 @@ CC_OP = CC_OP_EFLAGS; env->eflags &= ~(DF_MASK | CC_O | CC_S | CC_Z | CC_A | CC_P | CC_C); #elif defined(TARGET_SPARC) -#if defined(reg_REGWPTR) - saved_regwptr = REGWPTR; -#endif #elif defined(TARGET_M68K) env->cc_op = CC_OP_FLAGS; env->cc_dest = env->sr & 0xf; @@ -562,8 +554,6 @@ #elif defined(TARGET_ARM) cpu_dump_state(env, logfile, fprintf, 0); #elif defined(TARGET_SPARC) - REGWPTR = env->regbase + (env->cwp * 16); - env->regwptr = REGWPTR; cpu_dump_state(env, logfile, fprintf, 0); #elif defined(TARGET_PPC) cpu_dump_state(env, logfile, fprintf, 0); @@ -640,9 +630,6 @@ #elif defined(TARGET_ARM) /* XXX: Save/restore host fpu exception state?. */ #elif defined(TARGET_SPARC) -#if defined(reg_REGWPTR) - REGWPTR = saved_regwptr; -#endif #elif defined(TARGET_PPC) #elif defined(TARGET_M68K) cpu_m68k_flush_flags(env, env->cc_op); Modified: trunk/target-sparc/exec.h =================================================================== --- trunk/target-sparc/exec.h 2008-05-29 14:34:11 UTC (rev 4616) +++ trunk/target-sparc/exec.h 2008-05-29 16:38:41 UTC (rev 4617) @@ -4,7 +4,6 @@ #include "dyngen-exec.h" register struct CPUSPARCState *env asm(AREG0); -#define REGWPTR env->regwptr #define FT0 (env->ft0) #define FT1 (env->ft1) @@ -18,10 +17,6 @@ static inline void env_to_regs(void) { -#if defined(reg_REGWPTR) - REGWPTR = env->regbase + (env->cwp * 16); - env->regwptr = REGWPTR; -#endif } static inline void regs_to_env(void) Modified: trunk/target-sparc/op_helper.c =================================================================== --- trunk/target-sparc/op_helper.c 2008-05-29 14:34:11 UTC (rev 4616) +++ trunk/target-sparc/op_helper.c 2008-05-29 16:38:41 UTC (rev 4617) @@ -2629,7 +2629,6 @@ if (new_cwp == (NWINDOWS - 1)) memcpy32(env1->regbase + NWINDOWS * 16, env1->regbase); env1->regwptr = env1->regbase + (new_cwp * 16); - REGWPTR = env1->regwptr; } void set_cwp(int new_cwp)