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:
Alex Bennée 2018-02-28 08:53:30 -05:00 committed by Lioncash
parent 8278af45cd
commit 075aaad106
No known key found for this signature in database
GPG key ID: 4E3C3CC1031BA9C7

View file

@ -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 ?