[5118] SH4: convert control/status register load/store to TCG
Revision: 5118
http://svn.sv.gnu.org/viewvc/?view=rev&root=qemu&revision=5118 Author: aurel32 Date: 2008-08-30 22:07:52 +0000 (Sat, 30 Aug 2008)
Log Message:
-----------
SH4: convert control/status register load/store to TCG
Signed-off-by Aurelien Jarno <[email protected]>
Modified Paths:
--------------
trunk/target-sh4/helper.h
trunk/target-sh4/op.c
trunk/target-sh4/op_helper.c
trunk/target-sh4/translate.c
Modified: trunk/target-sh4/helper.h
===================================================================
target-sh4/helper.h +2 -0
@@ -16,3 +16,5 @@ DEF_HELPER(uint32_t, helper_negc, (uint32_t)) DEF_HELPER(void, helper_macl, (uint32_t, uint32_t)) DEF_HELPER(void, helper_macw, (uint32_t, uint32_t)) + +DEF_HELPER(void, helper_ld_fpscr, (uint32_t))
Modified: trunk/target-sh4/op.c
===================================================================
target-sh4/op.c +0 -46
52 lines not on this page · raw message
Modified: trunk/target-sh4/op_helper.c
===================================================================
target-sh4/op_helper.c +9 -0
@@ -388,3 +388,12 @@ env->sr &= ~SR_T ; *addr = new; } + +void helper_ld_fpscr (uint32_t val) +{ + env->fpscr = val &0x003fffff ; +if (val &0x01 ) +set_float_rounding_mode (float_round_to_zero, &env->fp_status); +else +set_float_rounding_mode (float_round_nearest_even, &env->fp_status); +}
Modified: trunk/target-sh4/translate.c
===================================================================
target-sh4/translate.c +58 -36
141 lines not on this page · raw message