mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-04 08:13:54 -06:00
tcg: Remove tcg_check_temp_count, tcg_clear_temp_count
Since all temps allocated by guest front-ends are now TEMP_TB, and we don't recycle TEMP_TB, there's no point in requiring that the front-ends free the temps at all. Begin by dropping the inner-most checks that all temps have been freed. Reviewed-by: Peter Maydell <peter.maydell@linaro.org> Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
This commit is contained in:
parent
3470867b3b
commit
2f2e911d0c
3 changed files with 8 additions and 72 deletions
|
@ -574,7 +574,6 @@ struct TCGContext {
|
|||
#endif
|
||||
|
||||
#ifdef CONFIG_DEBUG_TCG
|
||||
int temps_in_use;
|
||||
int goto_tb_issue_mask;
|
||||
const TCGOpcode *vecop_list;
|
||||
#endif
|
||||
|
@ -965,19 +964,6 @@ static inline TCGv_ptr tcg_temp_new_ptr(void)
|
|||
return temp_tcgv_ptr(t);
|
||||
}
|
||||
|
||||
#if defined(CONFIG_DEBUG_TCG)
|
||||
/* If you call tcg_clear_temp_count() at the start of a section of
|
||||
* code which is not supposed to leak any TCG temporaries, then
|
||||
* calling tcg_check_temp_count() at the end of the section will
|
||||
* return 1 if the section did in fact leak a temporary.
|
||||
*/
|
||||
void tcg_clear_temp_count(void);
|
||||
int tcg_check_temp_count(void);
|
||||
#else
|
||||
#define tcg_clear_temp_count() do { } while (0)
|
||||
#define tcg_check_temp_count() 0
|
||||
#endif
|
||||
|
||||
int64_t tcg_cpu_exec_time(void);
|
||||
void tcg_dump_info(GString *buf);
|
||||
void tcg_dump_op_count(GString *buf);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue