From: Aurelien Jarno <aurelien@aurel32.net>
To: qemu-devel@nongnu.org
Subject: [Qemu-devel] [7074] target-alpha: remove helper_load_implver
Date: Fri, 10 Apr 2009 21:27:31 +0000 [thread overview]
Message-ID: <E1LsOG3-0005x7-MZ@cvs.savannah.gnu.org> (raw)
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 <gingold@adacore.com>
Signed-off-by: Aurelien Jarno <aurelien@aurel32.net>
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
reply other threads:[~2009-04-10 21:27 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=E1LsOG3-0005x7-MZ@cvs.savannah.gnu.org \
--to=aurelien@aurel32.net \
--cc=qemu-devel@nongnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).