Skip to contentSkip to conversation

MIPS: Fix dmtc0 instruction

PATCH New Hervé Poussineau 1 participant 1 message Aug 23, 2008

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 MIPS: Fix dmtc0 instruction

Hi,

In gen_dmtc0 function, TCG temporary variable t0 is freed at the end of the function. Variable is freed again in the gen_dmtc0 caller. I removed the free in gen_dmtc0, to do like in gen_dmfc0, gen_mfc0, gen_mtc0.

Hervé

translate.c +0 -1
Index: target-mips/translate.c
===================================================================
@@ -5188,7 +5188,6 @@
                 rn, reg, sel);
     }
 #endif
-    tcg_temp_free(t0);
     /* For simplicity assume that all writes can cause interrupts.  */
     if (use_icount) {
         gen_io_end();