[4307] Fix MIPS MT GPR accesses, thanks Stefan Weil.
Revision: 4307
http://svn.sv.gnu.org/viewvc/?view=rev&root=qemu&revision=4307 Author: ths Date: 2008-05-03 11:06:59 +0000 (Sat, 03 May 2008)
Log Message:
-----------
Fix MIPS MT GPR accesses, thanks Stefan Weil.
Modified Paths:
--------------
trunk/target-mips/op.c
trunk/target-mips/op_template.c
Modified: trunk/target-mips/op.c
===================================================================
target-mips/op.c +8 -8
@@ -2300,7 +2300,7 @@ {int other_tc = env->CP0_VPEControl & (0xff << CP0VPECo_TargTC); -T0 = env->gpr[PARAM1 ][other_tc]; +T0 = env->gpr[other_tc][PARAM1 ];FORCE_RET (); }
@@ -2308,7 +2308,7 @@ {int other_tc = env->CP0_VPEControl & (0xff << CP0VPECo_TargTC); -T0 = env->LO[PARAM1 ][other_tc]; +T0 = env->LO[other_tc][PARAM1 ];FORCE_RET (); }
@@ -2316,7 +2316,7 @@ {int other_tc = env->CP0_VPEControl & (0xff << CP0VPECo_TargTC); -T0 = env->HI[PARAM1 ][other_tc]; +T0 = env->HI[other_tc][PARAM1 ];FORCE_RET (); }
@@ -2324,7 +2324,7 @@ {int other_tc = env->CP0_VPEControl & (0xff << CP0VPECo_TargTC); -T0 = env->ACX[PARAM1 ][other_tc]; +T0 = env->ACX[other_tc][PARAM1 ];FORCE_RET (); }
@@ -2340,7 +2340,7 @@ {int other_tc = env->CP0_VPEControl & (0xff << CP0VPECo_TargTC); -T0 = env->gpr[PARAM1 ][other_tc]; +T0 = env->gpr[other_tc][PARAM1 ];FORCE_RET (); }
@@ -2348,7 +2348,7 @@ {int other_tc = env->CP0_VPEControl & (0xff << CP0VPECo_TargTC); -T0 = env->LO[PARAM1 ][other_tc]; +T0 = env->LO[other_tc][PARAM1 ];FORCE_RET (); }
@@ -2356,7 +2356,7 @@ {int other_tc = env->CP0_VPEControl & (0xff << CP0VPECo_TargTC); -T0 = env->HI[PARAM1 ][other_tc]; +T0 = env->HI[other_tc][PARAM1 ];FORCE_RET (); }
@@ -2364,7 +2364,7 @@ {int other_tc = env->CP0_VPEControl & (0xff << CP0VPECo_TargTC); -T0 = env->ACX[PARAM1 ][other_tc]; +T0 = env->ACX[other_tc][PARAM1 ];FORCE_RET (); }
Modified: trunk/target-mips/op_template.c
===================================================================
target-mips/op_template.c +2 -2
@@ -52,13 +52,13 @@void glue (op_load_srsgpr_T0_gpr ,REG ) (void ) { -T0 = env->gpr[REG ][(env->CP0_SRSCtl >> CP0SRSCtl_PSS) &0xf ]; +T0 = env->gpr[(env->CP0_SRSCtl >> CP0SRSCtl_PSS) &0xf ][REG ];FORCE_RET (); }void glue (op_store_T0_srsgpr_gpr ,REG ) (void ) { - env->gpr[REG ][(env->CP0_SRSCtl >> CP0SRSCtl_PSS) &0xf ] =T0 ; + env->gpr[(env->CP0_SRSCtl >> CP0SRSCtl_PSS) &0xf ][REG ] =T0 ;FORCE_RET (); }#endif