[4740] Switch the standard multiplication instructions to TCG.
Revision: 4740
http://svn.sv.gnu.org/viewvc/?view=rev&root=qemu&revision=4740 Author: ths Date: 2008-06-12 12:43:29 +0000 (Thu, 12 Jun 2008)
Log Message:
-----------
Switch the standard multiplication instructions to TCG.
Modified Paths:
--------------
trunk/target-mips/exec.h
trunk/target-mips/helper.h
trunk/target-mips/op.c
trunk/target-mips/op_helper.c
trunk/target-mips/translate.c
Modified: trunk/target-mips/exec.h
===================================================================
target-mips/exec.h +0 -2
@@ -49,8 +49,6 @@#endif /* !defined(CONFIG_USER_ONLY) */ #if TARGET_LONG_BITS >HOST_LONG_BITS -void do_mult (void ); -void do_multu (void );void do_madd (void );void do_maddu (void );void do_msub (void );
Modified: trunk/target-mips/helper.h
===================================================================
target-mips/helper.h +2 -0
@@ -11,6 +11,8 @@ #ifdef TARGET_MIPS64 DEF_HELPER(void, do_dclo, (void)) DEF_HELPER(void, do_dclz, (void)) +DEF_HELPER(void, do_dmult, (void)) +DEF_HELPER(void, do_dmultu, (void)) #endif /* CP0 helpers */
Modified: trunk/target-mips/op.c
===================================================================
target-mips/op.c +0 -74
92 lines not on this page · raw message
Modified: trunk/target-mips/op_helper.c
===================================================================
target-mips/op_helper.c +12 -10
@@ -192,16 +192,6 @@ env->HI[env->current_tc][0 ] = (int32_t )(HILO >>32 ); } -void do_mult (void ) -{ -set_HILO ((int64_t )(int32_t )T0 * (int64_t )(int32_t )T1 ); -} - -void do_multu (void ) -{ -set_HILO ((uint64_t )(uint32_t )T0 * (uint64_t )(uint32_t )T1 ); -} -void do_madd (void ) {int64_t tmp;
@@ -306,6 +296,18 @@ }#endif /* TARGET_LONG_BITS > HOST_LONG_BITS */ +#ifdef TARGET_MIPS64 +void do_dmult (void ) +{ +muls64 (&(env->LO[env->current_tc][0 ]), &(env->HI[env->current_tc][0 ]),T0 ,T1 ); +} + +void do_dmultu (void ) +{ +mulu64 (&(env->LO[env->current_tc][0 ]), &(env->HI[env->current_tc][0 ]),T0 ,T1 ); +} +#endif +#ifdef CONFIG_USER_ONLY void do_mfc0_random (void ) {
Modified: trunk/target-mips/translate.c
===================================================================
target-mips/translate.c +152 -8
191 lines not on this page · raw message