qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
From: Aurelien Jarno <aurelien@aurel32.net>
To: qemu-devel@nongnu.org
Subject: [Qemu-devel] [5099] SH4: Convert dyngen registers moves to TCG
Date: Thu, 28 Aug 2008 21:02:31 +0000	[thread overview]
Message-ID: <E1KYodT-0004vJ-9G@cvs.savannah.gnu.org> (raw)

Revision: 5099
          http://svn.sv.gnu.org/viewvc/?view=rev&root=qemu&revision=5099
Author:   aurel32
Date:     2008-08-28 21:02:30 +0000 (Thu, 28 Aug 2008)

Log Message:
-----------
SH4: Convert dyngen registers moves to TCG

Signed-off-by: Aurelien Jarno <aurelien@aurel32.net>

Modified Paths:
--------------
    trunk/target-sh4/op.c
    trunk/target-sh4/translate.c

Modified: trunk/target-sh4/op.c
===================================================================
--- trunk/target-sh4/op.c	2008-08-28 21:02:19 UTC (rev 5098)
+++ trunk/target-sh4/op.c	2008-08-28 21:02:30 UTC (rev 5099)
@@ -946,12 +946,6 @@
     RETURN();
 }
 
-void OPPROTO op_movl_T0_T1(void)
-{
-    T1 = T0;
-    RETURN();
-}
-
 void OPPROTO op_movl_fpul_FT0(void)
 {
     FT0 = *(float32 *)&env->fpul;

Modified: trunk/target-sh4/translate.c
===================================================================
--- trunk/target-sh4/translate.c	2008-08-28 21:02:19 UTC (rev 5098)
+++ trunk/target-sh4/translate.c	2008-08-28 21:02:30 UTC (rev 5099)
@@ -584,7 +584,7 @@
     case 0x000f:		/* mac.l @Rm+,@Rn+ */
 	gen_op_movl_rN_T0(REG(B11_8));
 	gen_op_ldl_T0_T0(ctx);
-	gen_op_movl_T0_T1();
+	tcg_gen_mov_tl(cpu_T[0], cpu_T[1]);
 	gen_op_movl_rN_T0(REG(B7_4));
 	gen_op_ldl_T0_T0(ctx);
 	gen_op_macl_T0_T1();
@@ -594,7 +594,7 @@
     case 0x400f:		/* mac.w @Rm+,@Rn+ */
 	gen_op_movl_rN_T0(REG(B11_8));
 	gen_op_ldl_T0_T0(ctx);
-	gen_op_movl_T0_T1();
+	tcg_gen_mov_tl(cpu_T[0], cpu_T[1]);
 	gen_op_movl_rN_T0(REG(B7_4));
 	gen_op_ldl_T0_T0(ctx);
 	gen_op_macw_T0_T1();
@@ -813,7 +813,7 @@
     case 0xcd00:		/* and.b #imm,@(R0,GBR) */
 	gen_op_movl_rN_T0(REG(0));
 	gen_op_addl_GBR_T0();
-	gen_op_movl_T0_T1();
+	tcg_gen_mov_tl(cpu_T[0], cpu_T[1]);
 	gen_op_ldub_T0_T0(ctx);
 	gen_op_and_imm_T0(B7_0);
 	gen_op_stb_T0_T1(ctx);
@@ -865,21 +865,21 @@
     case 0xc000:		/* mov.b R0,@(disp,GBR) */
 	gen_op_stc_gbr_T0();
 	gen_op_addl_imm_T0(B7_0);
-	gen_op_movl_T0_T1();
+	tcg_gen_mov_tl(cpu_T[0], cpu_T[1]);
 	gen_op_movl_rN_T0(REG(0));
 	gen_op_stb_T0_T1(ctx);
 	return;
     case 0xc100:		/* mov.w R0,@(disp,GBR) */
 	gen_op_stc_gbr_T0();
 	gen_op_addl_imm_T0(B7_0 * 2);
-	gen_op_movl_T0_T1();
+	tcg_gen_mov_tl(cpu_T[0], cpu_T[1]);
 	gen_op_movl_rN_T0(REG(0));
 	gen_op_stw_T0_T1(ctx);
 	return;
     case 0xc200:		/* mov.l R0,@(disp,GBR) */
 	gen_op_stc_gbr_T0();
 	gen_op_addl_imm_T0(B7_0 * 4);
-	gen_op_movl_T0_T1();
+	tcg_gen_mov_tl(cpu_T[0], cpu_T[1]);
 	gen_op_movl_rN_T0(REG(0));
 	gen_op_stl_T0_T1(ctx);
 	return;
@@ -917,7 +917,7 @@
     case 0xcf00:		/* or.b #imm,@(R0,GBR) */
 	gen_op_movl_rN_T0(REG(0));
 	gen_op_addl_GBR_T0();
-	gen_op_movl_T0_T1();
+	tcg_gen_mov_tl(cpu_T[0], cpu_T[1]);
 	gen_op_ldub_T0_T0(ctx);
 	gen_op_or_imm_T0(B7_0);
 	gen_op_stb_T0_T1(ctx);
@@ -942,7 +942,7 @@
     case 0xce00:		/* xor.b #imm,@(R0,GBR) */
 	gen_op_movl_rN_T0(REG(0));
 	gen_op_addl_GBR_T0();
-	gen_op_movl_T0_T1();
+	tcg_gen_mov_tl(cpu_T[0], cpu_T[1]);
 	gen_op_ldub_T0_T0(ctx);
 	gen_op_xor_imm_T0(B7_0);
 	gen_op_stb_T0_T1(ctx);
@@ -1110,7 +1110,7 @@
 	return;
     case 0x401b:		/* tas.b @Rn */
 	gen_op_movl_rN_T0(REG(B11_8));
-	gen_op_movl_T0_T1();
+	tcg_gen_mov_tl(cpu_T[0], cpu_T[1]);
 	gen_op_ldub_T0_T0(ctx);
 	gen_op_cmp_eq_imm_T0(0);
 	gen_op_or_imm_T0(0x80);

                 reply	other threads:[~2008-08-28 21:02 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=E1KYodT-0004vJ-9G@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).