Skip to contentSkip to conversation

[4604] Honour current_tc for MIPS M{T, F}{HI, LO}, by Richard Sandiford.

Qemu-devel Thiemo Seufer 1 participant 1 message May 28, 2008

lore
Share & tools
lore
#0 lore raw

Revision: 4604

          http://svn.sv.gnu.org/viewvc/?view=rev&root=qemu&revision=4604
Author:   ths
Date:     2008-05-28 13:37:19 +0000 (Wed, 28 May 2008)

Log Message:
-----------
Honour current_tc for MIPS M{T,F}{HI,LO}, by Richard Sandiford.

Modified Paths:
--------------
trunk/target-mips/cpu.h
trunk/target-mips/translate.c
trunk/target-mips/translate_init.c

Modified: trunk/target-mips/cpu.h
===================================================================

target-mips/cpu.h +1 -0
@@ -159,6 +159,7 @@
     CPUMIPSFPUContext *fpu;
     uint32_t current_tc;
     target_ulong *current_tc_gprs;
+    target_ulong *current_tc_hi;
 
     uint32_t SEGBITS;
     target_ulong SEGMask;

Modified: trunk/target-mips/translate.c
===================================================================

target-mips/translate.c +44 -45

177 lines not on this page · raw message

Modified: trunk/target-mips/translate_init.c
===================================================================

target-mips/translate_init.c +1 -0
@@ -547,6 +547,7 @@
     env->CP0_SRSCtl = def->CP0_SRSCtl;
     env->current_tc = 0;
     env->current_tc_gprs = &env->gpr[env->current_tc][0];
+    env->current_tc_hi = &env->HI[env->current_tc][0];
     env->SEGBITS = def->SEGBITS;
     env->SEGMask = (target_ulong)((1ULL << def->SEGBITS) - 1);
 #if defined(TARGET_MIPS64)