diff options
author | Alex Bennée <alex.bennee@linaro.org> | 2016-03-15 14:30:21 +0000 |
---|---|---|
committer | Timothy Pearson <tpearson@raptorengineering.com> | 2019-11-29 19:57:52 -0600 |
commit | 18d1e7bbdce13d2dcb37e2abc65ad0dd1d692c4a (patch) | |
tree | b500754ea763d1574dd86bd7a6572db022842b8c /tcg | |
parent | 2c922a6a047bfdf4480acec448486af890243878 (diff) | |
download | hqemu-18d1e7bbdce13d2dcb37e2abc65ad0dd1d692c4a.zip hqemu-18d1e7bbdce13d2dcb37e2abc65ad0dd1d692c4a.tar.gz |
qemu-log: dfilter-ise exec, out_asm, op and opt_op
This ensures the code generation debug code will honour -dfilter if set.
For the "exec" tracing I've added a new inline macro for efficiency's
sake.
Signed-off-by: Alex Bennée <alex.bennee@linaro.org>
Reviewed-by: Aurelien Jarno <aurelien@aureL32.net>
Reviewed-by: Richard Henderson <rth@twiddle.net>
Message-Id: <1458052224-9316-8-git-send-email-alex.bennee@linaro.org>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Diffstat (limited to 'tcg')
-rw-r--r-- | tcg/tcg.c | 6 |
1 files changed, 4 insertions, 2 deletions
@@ -2550,7 +2550,8 @@ int tcg_gen_code(TCGContext *s, TranslationBlock *tb) #endif #ifdef DEBUG_DISAS - if (unlikely(qemu_loglevel_mask(CPU_LOG_TB_OP))) { + if (unlikely(qemu_loglevel_mask(CPU_LOG_TB_OP) + && qemu_log_in_addr_range(tb->pc))) { qemu_log("OP:\n"); tcg_dump_ops(s); qemu_log("\n"); @@ -2577,7 +2578,8 @@ int tcg_gen_code(TCGContext *s, TranslationBlock *tb) #endif #ifdef DEBUG_DISAS - if (unlikely(qemu_loglevel_mask(CPU_LOG_TB_OP_OPT))) { + if (unlikely(qemu_loglevel_mask(CPU_LOG_TB_OP_OPT) + && qemu_log_in_addr_range(tb->pc))) { qemu_log("OP after optimization and liveness analysis:\n"); tcg_dump_ops(s); qemu_log("\n"); |