[4732] Switch most MIPS FP load/stores to TCG.
Revision: 4732
http://svn.sv.gnu.org/viewvc/?view=rev&root=qemu&revision=4732 Author: ths Date: 2008-06-11 13:02:57 +0000 (Wed, 11 Jun 2008)
Log Message:
-----------
Switch most MIPS FP load/stores to TCG.
Modified Paths:
--------------
trunk/target-mips/op.c
trunk/target-mips/op_mem.c
trunk/target-mips/translate.c
Modified: trunk/target-mips/op.c
===================================================================
target-mips/op.c +0 -139
@@ -48,103 +48,6 @@ func(arg0, arg1, arg2, arg3)#endif -#define FREG 0 -#include "fop_template.c" -#undef FREG -#define FREG 1 -#include "fop_template.c" -#undef FREG -#define FREG 2 -#include "fop_template.c" -#undef FREG -#define FREG 3 -#include "fop_template.c" -#undef FREG -#define FREG 4 -#include "fop_template.c" -#undef FREG -#define FREG 5 -#include "fop_template.c" -#undef FREG -#define FREG 6 -#include "fop_template.c" -#undef FREG -#define FREG 7 -#include "fop_template.c" -#undef FREG -#define FREG 8 -#include "fop_template.c" -#undef FREG -#define FREG 9 -#include "fop_template.c" -#undef FREG -#define FREG 10 -#include "fop_template.c" -#undef FREG -#define FREG 11 -#include "fop_template.c" -#undef FREG -#define FREG 12 -#include "fop_template.c" -#undef FREG -#define FREG 13 -#include "fop_template.c" -#undef FREG -#define FREG 14 -#include "fop_template.c" -#undef FREG -#define FREG 15 -#include "fop_template.c" -#undef FREG -#define FREG 16 -#include "fop_template.c" -#undef FREG -#define FREG 17 -#include "fop_template.c" -#undef FREG -#define FREG 18 -#include "fop_template.c" -#undef FREG -#define FREG 19 -#include "fop_template.c" -#undef FREG -#define FREG 20 -#include "fop_template.c" -#undef FREG -#define FREG 21 -#include "fop_template.c" -#undef FREG -#define FREG 22 -#include "fop_template.c" -#undef FREG -#define FREG 23 -#include "fop_template.c" -#undef FREG -#define FREG 24 -#include "fop_template.c" -#undef FREG -#define FREG 25 -#include "fop_template.c" -#undef FREG -#define FREG 26 -#include "fop_template.c" -#undef FREG -#define FREG 27 -#include "fop_template.c" -#undef FREG -#define FREG 28 -#include "fop_template.c" -#undef FREG -#define FREG 29 -#include "fop_template.c" -#undef FREG -#define FREG 30 -#include "fop_template.c" -#undef FREG -#define FREG 31 -#include "fop_template.c" -#undef FREG -/* Load and store */ #define MEMSUFFIX _raw#include "op_mem.c"
@@ -467,48 +370,6 @@# define DEBUG_FPU_STATE () do { } while(0)#endif -void op_mfc1 (void ) -{ -T0 = (int32_t )WT0 ; -DEBUG_FPU_STATE (); -FORCE_RET (); -} - -void op_mtc1 (void ) -{ -WT0 =T0 ; -DEBUG_FPU_STATE (); -FORCE_RET (); -} - -void op_dmfc1 (void ) -{ -T0 =DT0 ; -DEBUG_FPU_STATE (); -FORCE_RET (); -} - -void op_dmtc1 (void ) -{ -DT0 =T0 ; -DEBUG_FPU_STATE (); -FORCE_RET (); -} - -void op_mfhc1 (void ) -{ -T0 = (int32_t )WTH0 ; -DEBUG_FPU_STATE (); -FORCE_RET (); -} - -void op_mthc1 (void ) -{ -WTH0 =T0 ; -DEBUG_FPU_STATE (); -FORCE_RET (); -} -/* Float support. Single precition routines have a "s" suffix, double precision a "d" suffix, 32bit integer "w", 64bit integer "l", paired singe "ps",
Modified: trunk/target-mips/op_mem.c
===================================================================
target-mips/op_mem.c +0 -20
@@ -268,26 +268,6 @@ }#endif /* TARGET_MIPS64 */ -void glue (op_lwc1 ,MEMSUFFIX ) (void ) -{ -WT0 =glue (ldl,MEMSUFFIX )(T0 ); -FORCE_RET (); -} -void glue (op_swc1 ,MEMSUFFIX ) (void ) -{ -glue (stl,MEMSUFFIX )(T0 ,WT0 ); -FORCE_RET (); -} -void glue (op_ldc1 ,MEMSUFFIX ) (void ) -{ -DT0 =glue (ldq,MEMSUFFIX )(T0 ); -FORCE_RET (); -} -void glue (op_sdc1 ,MEMSUFFIX ) (void ) -{ -glue (stq,MEMSUFFIX )(T0 ,DT0 ); -FORCE_RET (); -}void glue (op_luxc1 ,MEMSUFFIX ) (void ) {DT0 =glue (ldq,MEMSUFFIX )(T0 & ~0x7 );
Modified: trunk/target-mips/translate.c
===================================================================
target-mips/translate.c +425 -427
1,510 lines not on this page · raw message