target/mips: Fix TCG temporary leak in gen_cache_operation()

Fix a TCG temporary leak when translating CACHE opcode.

Fixes: 0d74a222c27 ("make ITC Configuration Tags accessible to the CPU")

Backports f4349ba966abfe39f5d98694abd7c7551d5c8c02
This commit is contained in:
Philippe Mathieu-Daudé 2021-04-19 11:55:30 -04:00 committed by Lioncash
parent d248e38ec7
commit 00aebd3410

View file

@ -13823,6 +13823,8 @@ static void gen_cache_operation(DisasContext *ctx, uint32_t op, int base,
TCGv t1 = tcg_temp_new(tcg_ctx);
gen_base_offset_addr(ctx, t1, base, offset);
gen_helper_cache(tcg_ctx, tcg_ctx->cpu_env, t1, t0);
tcg_temp_free(tcg_ctx, t1);
tcg_temp_free_i32(tcg_ctx, t0);
}
#if defined(TARGET_MIPS64)