mirror of
https://github.com/yuzu-emu/unicorn.git
synced 2025-01-03 17:45:47 +00:00
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:
parent
d248e38ec7
commit
00aebd3410
|
@ -13823,6 +13823,8 @@ static void gen_cache_operation(DisasContext *ctx, uint32_t op, int base,
|
||||||
TCGv t1 = tcg_temp_new(tcg_ctx);
|
TCGv t1 = tcg_temp_new(tcg_ctx);
|
||||||
gen_base_offset_addr(ctx, t1, base, offset);
|
gen_base_offset_addr(ctx, t1, base, offset);
|
||||||
gen_helper_cache(tcg_ctx, tcg_ctx->cpu_env, t1, t0);
|
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)
|
#if defined(TARGET_MIPS64)
|
||||||
|
|
Loading…
Reference in a new issue