diff options
author | aurel32 <aurel32@c046a42c-6fe2-441c-8c8c-71466251a162> | 2008-08-30 22:07:52 +0000 |
---|---|---|
committer | aurel32 <aurel32@c046a42c-6fe2-441c-8c8c-71466251a162> | 2008-08-30 22:07:52 +0000 |
commit | 390af821662c9d6af90b8914ec3efd0f8b255aef (patch) | |
tree | 233a7708564ba4b5e5e514407a75fed63cde1cbf /target-sh4/op.c | |
parent | fa4da1074c67a81e09d2bb99b406e1676769be89 (diff) |
SH4: convert control/status register load/store to TCG
Signed-off-by: Aurelien Jarno <aurelien@aurel32.net>
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@5118 c046a42c-6fe2-441c-8c8c-71466251a162
Diffstat (limited to 'target-sh4/op.c')
-rw-r--r-- | target-sh4/op.c | 46 |
1 files changed, 0 insertions, 46 deletions
diff --git a/target-sh4/op.c b/target-sh4/op.c index a2c602aca6..8313070232 100644 --- a/target-sh4/op.c +++ b/target-sh4/op.c @@ -88,52 +88,6 @@ void OPPROTO op_shld_T0_T1(void) RETURN(); } -void OPPROTO op_ldc_T0_sr(void) -{ - env->sr = T0 & 0x700083f3; - RETURN(); -} - -void OPPROTO op_stc_sr_T0(void) -{ - T0 = env->sr; - RETURN(); -} - -#define LDSTOPS(target,load,store) \ -void OPPROTO op_##load##_T0_##target (void) \ -{ env ->target = T0; RETURN(); \ -} \ -void OPPROTO op_##store##_##target##_T0 (void) \ -{ T0 = env->target; RETURN(); \ -} \ - - LDSTOPS(gbr, ldc, stc) - LDSTOPS(vbr, ldc, stc) - LDSTOPS(ssr, ldc, stc) - LDSTOPS(spc, ldc, stc) - LDSTOPS(sgr, ldc, stc) - LDSTOPS(dbr, ldc, stc) - LDSTOPS(mach, lds, sts) - LDSTOPS(macl, lds, sts) - LDSTOPS(pr, lds, sts) - LDSTOPS(fpul, lds, sts) - -void OPPROTO op_lds_T0_fpscr(void) -{ - env->fpscr = T0 & 0x003fffff; - env->fp_status.float_rounding_mode = T0 & 0x01 ? - float_round_to_zero : float_round_nearest_even; - - RETURN(); -} - -void OPPROTO op_sts_fpscr_T0(void) -{ - T0 = env->fpscr & 0x003fffff; - RETURN(); -} - void OPPROTO op_rotcl_Rn(void) { helper_rotcl(&env->gregs[PARAM1]); |