Skip to content

Commit

Permalink
target/mips: Fix TCG temporary leak in gen_cache_operation()
Browse files Browse the repository at this point in the history
Fix a TCG temporary leak when translating CACHE opcode.

Fixes: 0d74a22 ("make ITC Configuration Tags accessible to the CPU")
Signed-off-by: Philippe Mathieu-Daudé <f4bug@amsat.org>
Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
Message-Id: <20210406202857.1440744-1-f4bug@amsat.org>
  • Loading branch information
philmd committed Apr 13, 2021
1 parent 6227120 commit f4349ba
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions target/mips/translate.c
Expand Up @@ -12804,6 +12804,8 @@ static void gen_cache_operation(DisasContext *ctx, uint32_t op, int base,
TCGv t1 = tcg_temp_new();
gen_base_offset_addr(ctx, t1, base, offset);
gen_helper_cache(cpu_env, t1, t0);
tcg_temp_free(t1);
tcg_temp_free_i32(t0);
}

#if defined(TARGET_MIPS64)
Expand Down

0 comments on commit f4349ba

Please sign in to comment.