mirror of
https://github.com/xemu-project/xemu.git
synced 2024-11-23 19:49:43 +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. Signed-off-by: Alex Bennée <alex.bennee@linaro.org> Reviewed-by: Richard Henderson <rth@twiddle.net> Message-Id: <20161027151030.20863-3-alex.bennee@linaro.org> Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
This commit is contained in:
parent
e8faee06f3
commit
955939a2b5
@ -56,10 +56,10 @@
|
|||||||
#include "qemu/timer.h"
|
#include "qemu/timer.h"
|
||||||
#include "exec/log.h"
|
#include "exec/log.h"
|
||||||
|
|
||||||
//#define DEBUG_TB_INVALIDATE
|
/* #define DEBUG_TB_INVALIDATE */
|
||||||
//#define DEBUG_FLUSH
|
/* #define DEBUG_TB_FLUSH */
|
||||||
/* make various TB consistency checks */
|
/* make various TB consistency checks */
|
||||||
//#define DEBUG_TB_CHECK
|
/* #define DEBUG_TB_CHECK */
|
||||||
|
|
||||||
#if !defined(CONFIG_USER_ONLY)
|
#if !defined(CONFIG_USER_ONLY)
|
||||||
/* TB consistency checks only implemented for usermode emulation. */
|
/* TB consistency checks only implemented for usermode emulation. */
|
||||||
@ -869,7 +869,7 @@ static void do_tb_flush(CPUState *cpu, void *data)
|
|||||||
goto done;
|
goto done;
|
||||||
}
|
}
|
||||||
|
|
||||||
#if defined(DEBUG_FLUSH)
|
#if defined(DEBUG_TB_FLUSH)
|
||||||
printf("qemu: flush code_size=%ld nb_tbs=%d avg_tb_size=%ld\n",
|
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),
|
(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 ?
|
tcg_ctx.tb_ctx.nb_tbs, tcg_ctx.tb_ctx.nb_tbs > 0 ?
|
||||||
|
Loading…
Reference in New Issue
Block a user