From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1LsOG6-0004uB-5m for qemu-devel@nongnu.org; Fri, 10 Apr 2009 17:27:34 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1LsOG4-0004sn-Rz for qemu-devel@nongnu.org; Fri, 10 Apr 2009 17:27:33 -0400 Received: from [199.232.76.173] (port=34462 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1LsOG4-0004sX-NG for qemu-devel@nongnu.org; Fri, 10 Apr 2009 17:27:32 -0400 Received: from savannah.gnu.org ([199.232.41.3]:53674 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 1LsOG4-0008Hm-EB for qemu-devel@nongnu.org; Fri, 10 Apr 2009 17:27:32 -0400 Received: from cvs.savannah.gnu.org ([199.232.41.69]) by sv.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1LsOG3-0005xB-Ub for qemu-devel@nongnu.org; Fri, 10 Apr 2009 21:27:32 +0000 Received: from aurel32 by cvs.savannah.gnu.org with local (Exim 4.69) (envelope-from ) id 1LsOG3-0005x7-MZ for qemu-devel@nongnu.org; Fri, 10 Apr 2009 21:27:31 +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: Fri, 10 Apr 2009 21:27:31 +0000 Subject: [Qemu-devel] [7074] target-alpha: remove helper_load_implver 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: 7074 http://svn.sv.gnu.org/viewvc/?view=rev&root=qemu&revision=7074 Author: aurel32 Date: 2009-04-10 21:27:31 +0000 (Fri, 10 Apr 2009) Log Message: ----------- target-alpha: remove helper_load_implver There is no need to use an helper. Directly load the value with tcg code. Signed-off-by: Tristan Gingold Signed-off-by: Aurelien Jarno Modified Paths: -------------- trunk/target-alpha/helper.h trunk/target-alpha/op_helper.c trunk/target-alpha/translate.c Modified: trunk/target-alpha/helper.h =================================================================== --- trunk/target-alpha/helper.h 2009-04-10 21:27:15 UTC (rev 7073) +++ trunk/target-alpha/helper.h 2009-04-10 21:27:31 UTC (rev 7074) @@ -5,7 +5,6 @@ DEF_HELPER_2(excp, void, int, int) DEF_HELPER_1(amask, i64, i64) DEF_HELPER_0(load_pcc, i64) -DEF_HELPER_0(load_implver, i64) DEF_HELPER_0(rc, i64) DEF_HELPER_0(rs, i64) Modified: trunk/target-alpha/op_helper.c =================================================================== --- trunk/target-alpha/op_helper.c 2009-04-10 21:27:15 UTC (rev 7073) +++ trunk/target-alpha/op_helper.c 2009-04-10 21:27:31 UTC (rev 7074) @@ -58,11 +58,6 @@ return 0; } -uint64_t helper_load_implver (void) -{ - return env->implver; -} - uint64_t helper_load_fpcr (void) { uint64_t ret = 0; Modified: trunk/target-alpha/translate.c =================================================================== --- trunk/target-alpha/translate.c 2009-04-10 21:27:15 UTC (rev 7073) +++ trunk/target-alpha/translate.c 2009-04-10 21:27:31 UTC (rev 7074) @@ -51,6 +51,7 @@ #if !defined (CONFIG_USER_ONLY) int pal_mode; #endif + CPUAlphaState *env; uint32_t amask; }; @@ -1175,7 +1176,7 @@ case 0x6C: /* IMPLVER */ if (rc != 31) - gen_helper_load_implver(cpu_ir[rc]); + tcg_gen_movi_i64(cpu_ir[rc], ctx->env->implver); break; default: goto invalid_opc; @@ -2352,6 +2353,7 @@ gen_opc_end = gen_opc_buf + OPC_MAX_SIZE; ctx.pc = pc_start; ctx.amask = env->amask; + ctx.env = env; #if defined (CONFIG_USER_ONLY) ctx.mem_idx = 0; #else