[4784] Use temporaries instead of fixed registers for some instructions.
Revision: 4784
http://svn.sv.gnu.org/viewvc/?view=rev&root=qemu&revision=4784 Author: ths Date: 2008-06-24 15:12:27 +0000 (Tue, 24 Jun 2008)
Log Message:
-----------
Use temporaries instead of fixed registers for some instructions.
Modified Paths:
--------------
trunk/target-mips/helper.h
trunk/target-mips/op_helper.c
trunk/target-mips/translate.c
Modified: trunk/target-mips/helper.h
===================================================================
target-mips/helper.h +4 -4
@@ -152,11 +152,11 @@ DEF_HELPER(target_ulong, do_emt, (target_ulong t0)) DEF_HELPER(target_ulong, do_dvpe, (target_ulong t0)) DEF_HELPER(target_ulong, do_evpe, (target_ulong t0)) -DEF_HELPER(target_ulong, do_fork, (target_ulong t0, target_ulong t1)) +DEF_HELPER(void, do_fork, (target_ulong t0, target_ulong t1)) DEF_HELPER(target_ulong, do_yield, (target_ulong t0)) /* CP1 functions */ -DEF_HELPER(target_ulong, do_cfc1, (target_ulong t0, uint32_t reg)) +DEF_HELPER(target_ulong, do_cfc1, (uint32_t reg)) DEF_HELPER(void, do_ctc1, (target_ulong t0, uint32_t reg)) DEF_HELPER(void, do_float_cvtd_s, (void))
@@ -241,8 +241,8 @@/* Special functions */ DEF_HELPER(target_ulong, do_di, (target_ulong t0)) DEF_HELPER(target_ulong, do_ei, (target_ulong t0)) -DEF_HELPER(void, do_eret, (target_ulong t0)) -DEF_HELPER(void, do_deret, (target_ulong t0)) +DEF_HELPER(void, do_eret, (void)) +DEF_HELPER(void, do_deret, (void)) DEF_HELPER(target_ulong, do_rdhwr_cpunum, (target_ulong t0)) DEF_HELPER(target_ulong, do_rdhwr_synci_step, (target_ulong t0)) DEF_HELPER(target_ulong, do_rdhwr_cc, (target_ulong t0))
Modified: trunk/target-mips/op_helper.c
===================================================================
target-mips/op_helper.c +6 -6
@@ -1438,13 +1438,11 @@return t0; } -target_ulong do_fork (target_ulong t0,target_ulong t1) +void do_fork (target_ulong t0,target_ulong t1) {// t0 = rt, t1 = rs t0 =0 ;// TODO: store to TC register - -return t0; }target_ulong do_yield (target_ulong t0)
@@ -1684,7 +1682,7 @@ } } -void do_eret (target_ulong t0) +void do_eret (void ) {if (loglevel &CPU_LOG_EXEC )debug_pre_eret ();
@@ -1701,7 +1699,7 @@ env->CP0_LLAddr =1 ; } -void do_deret (target_ulong t0) +void do_deret (void ) {if (loglevel &CPU_LOG_EXEC )debug_pre_eret ();
@@ -1918,8 +1916,10 @@#define RESTORE_ROUNDING_MODE \ set_float_rounding_mode(ieee_rm[env->fpu->fcr31 & 3], &env->fpu->fp_status) -target_ulong do_cfc1 (target_ulong t0,uint32_t reg) +target_ulong do_cfc1 (uint32_t reg) { +target_ulong t0; +switch (reg) {case 0 : t0 = (int32_t )env->fpu->fcr0;
Modified: trunk/target-mips/translate.c
===================================================================
target-mips/translate.c +398 -293
1,340 lines not on this page · raw message