mirror of
https://github.com/yuzu-emu/unicorn.git
synced 2025-02-02 11:51:07 +00:00
translate_all: DEBUG_FLUSH -> DEBUG_TB_FLUSH
Make the debug define consistent with the others. The flush operation is all about invalidating TranslationBlocks on flush events. Also fix up the commenting on the other DEBUG for the benefit of checkpatch. Backports commit 955939a2b51f72bea1c200b559ea39985df5a633 from qemu
This commit is contained in:
parent
8278af45cd
commit
075aaad106
|
@ -60,10 +60,10 @@
|
|||
|
||||
#include "uc_priv.h"
|
||||
|
||||
//#define DEBUG_TB_INVALIDATE
|
||||
//#define DEBUG_FLUSH
|
||||
/* #define DEBUG_TB_INVALIDATE */
|
||||
/* #define DEBUG_TB_FLUSH */
|
||||
/* make various TB consistency checks */
|
||||
//#define DEBUG_TB_CHECK
|
||||
/* #define DEBUG_TB_CHECK */
|
||||
|
||||
#if !defined(CONFIG_USER_ONLY)
|
||||
/* TB consistency checks only implemented for usermode emulation. */
|
||||
|
@ -906,7 +906,7 @@ void tb_flush(CPUState *cpu)
|
|||
TCGContext *tcg_ctx = uc->tcg_ctx;
|
||||
int i;
|
||||
|
||||
#if defined(DEBUG_FLUSH)
|
||||
#if defined(DEBUG_TB_FLUSH)
|
||||
printf("qemu: flush code_size=%ld nb_tbs=%d avg_tb_size=%ld\n",
|
||||
(unsigned long)(tcg_ctx->code_gen_ptr - tcg_ctx->code_gen_buffer),
|
||||
tcg_ctx->tb_ctx.nb_tbs, tcg_ctx->tb_ctx.nb_tbs > 0 ?
|
||||
|
|
Loading…
Reference in a new issue