tcg-op: Make sure to free temporaries within gen_uc_tracecode()

After the helper is generated, these are no longer needed and can be
reclaimed.
This commit is contained in:
Lioncash 2019-04-18 05:35:59 -04:00
parent e579832dcb
commit b9d1002609
No known key found for this signature in database
GPG key ID: 4E3C3CC1031BA9C7

View file

@ -50,6 +50,10 @@ static inline void gen_uc_tracecode(TCGContext *tcg_ctx, int32_t size, int32_t t
TCGv_ptr tuc = tcg_const_ptr(tcg_ctx, uc);
TCGv_i64 tpc = tcg_const_i64(tcg_ctx, pc);
gen_helper_uc_tracecode(tcg_ctx, tsize, ttype, tuc, tpc);
tcg_temp_free_i64(tcg_ctx, tpc);
tcg_temp_free_ptr(tcg_ctx, tuc);
tcg_temp_free_i32(tcg_ctx, ttype);
tcg_temp_free_i32(tcg_ctx, tsize);
}
static inline void tcg_gen_op1_i32(TCGContext *s, TCGOpcode opc, TCGv_i32 a1)