Commit 492b239197b1695df12cab1f05a72d1cd2c14058

Authored by aurel32
1 parent 825c69ce

MIPS: don't free TCG temporary variable twice

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é Poussineau)

git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@5075 c046a42c-6fe2-441c-8c8c-71466251a162
Showing 1 changed file with 0 additions and 2 deletions
target-mips/translate.c
... ... @@ -5188,7 +5188,6 @@ static void gen_dmtc0 (CPUState *env, DisasContext *ctx, TCGv t0, int reg, int s
5188 5188 rn, reg, sel);
5189 5189 }
5190 5190 #endif
5191   - tcg_temp_free(t0);
5192 5191 /* For simplicity assume that all writes can cause interrupts. */
5193 5192 if (use_icount) {
5194 5193 gen_io_end();
... ... @@ -5197,7 +5196,6 @@ static void gen_dmtc0 (CPUState *env, DisasContext *ctx, TCGv t0, int reg, int s
5197 5196 return;
5198 5197  
5199 5198 die:
5200   - tcg_temp_free(t0);
5201 5199 #if defined MIPS_DEBUG_DISAS
5202 5200 if (loglevel & CPU_LOG_TB_IN_ASM) {
5203 5201 fprintf(logfile, "dmtc0 %s (reg %d sel %d)\n",
... ...