[5107] SH4: convert a few control or system register functions to TCG
Revision: 5107
http://svn.sv.gnu.org/viewvc/?view=rev&root=qemu&revision=5107 Author: aurel32 Date: 2008-08-29 16:32:18 +0000 (Fri, 29 Aug 2008)
Log Message:
-----------
SH4: convert a few control or system register functions to TCG
Signed-off-by Aurelien Jarno <[email protected]>
Modified Paths:
--------------
trunk/target-sh4/op.c
trunk/target-sh4/translate.c
Modified: trunk/target-sh4/op.c
===================================================================
target-sh4/op.c +0 -54
@@ -107,42 +107,12 @@RETURN (); } -void OPPROTO op_clrmac(void) -{ - env->mach = env->macl =0 ; -RETURN (); -} - -void OPPROTO op_clrs(void) -{ - env->sr &= ~SR_S ; -RETURN (); -} - -void OPPROTO op_clrt(void) -{ - env->sr &= ~SR_T ; -RETURN (); -} - void OPPROTO op_ldtlb(void) {helper_ldtlb ();RETURN (); } -void OPPROTO op_sets(void) -{ - env->sr |=SR_S ; -RETURN (); -} - -void OPPROTO op_sett(void) -{ - env->sr |=SR_T ; -RETURN (); -} - void OPPROTO op_frchg(void) { env->fpscr ^=FPSCR_FR ;
@@ -233,12 +203,6 @@RETURN (); } -void OPPROTO op_div0u(void) -{ - env->sr &= ~(SR_M |SR_Q |SR_T ); -RETURN (); -} - void OPPROTO op_div1_T0_T1(void) {helper_div1_T0_T1 ();
@@ -406,12 +370,6 @@RETURN (); } -void OPPROTO op_movt_rN(void) -{ - env->gregs[PARAM1 ] = env->sr &SR_T ; -RETURN (); -} - void OPPROTO op_rotcl_Rn(void) {helper_rotcl (&env->gregs[PARAM1 ]);
@@ -676,12 +634,6 @@RETURN (); } -void OPPROTO op_movl_imm_PC(void) -{ - env->pc =PARAM1 ; -RETURN (); -} - void OPPROTO op_jT(void) {if (env->sr &SR_T )
@@ -704,12 +656,6 @@RETURN (); } -void OPPROTO op_addl_GBR_T0(void) -{ -T0 += env->gbr; -RETURN (); -} - void OPPROTO op_tst_imm_T0(void) {cond_t ((T0 &PARAM1 ) ==0 );
Modified: trunk/target-sh4/translate.c
===================================================================
target-sh4/translate.c +46 -15
147 lines not on this page · raw message