Skip to contentSkip to conversation

Make cpu_T TCG variables truly temporary.

PATCH New Filip Navara 1 participant 1 message Jul 15, 2009

lore
Share & tools
lore
#0 lore raw

PATCH 4/5 Make cpu_T TCG variables truly temporary.

---
 target-arm/translate.c |    5 ++---
 1 files changed, 2 insertions(+), 3 deletions(-)
target-arm/translate.c +2 -3
index 063d820..30f55f7 100644
@@ -98,9 +98,6 @@ void arm_translate_init(void)
 
     cpu_env = tcg_global_reg_new_ptr(TCG_AREG0, "env");
 
-    cpu_T[0] = tcg_global_reg_new_i32(TCG_AREG1, "T0");
-    cpu_T[1] = tcg_global_reg_new_i32(TCG_AREG2, "T1");
-
     for (i = 0; i < 16; i++) {
         cpu_R[i] = tcg_global_mem_new_i32(TCG_AREG0,
                                           offsetof(CPUState, regs[i]),
@@ -8732,6 +8729,8 @@ static inline void gen_intermediate_code_internal(CPUState *env,
         dc->user = (env->uncached_cpsr & 0x1f) == ARM_CPU_MODE_USR;
     }
 #endif
+    cpu_T[0] = tcg_temp_new_i32();
+    cpu_T[1] = tcg_temp_new_i32();
     cpu_F0s = tcg_temp_new_i32();
     cpu_F1s = tcg_temp_new_i32();
     cpu_F0d = tcg_temp_new_i64();
Signature · 1 line
1.6.3.msysgit.0