Message ID | 1456156787-17509-8-git-send-email-alex.bennee@linaro.org (mailing list archive) |
---|---|
State | New, archived |
Headers | show |
On 02/22/2016 07:59 AM, Alex Bennée wrote: > Each individual architecture needs to use the qemu_log_in_addr_range() > feature for enabling in_asm output as it is part of the frontend. > > Signed-off-by: Alex Bennée <alex.bennee@linaro.org> > Reviewed-by: Aurelien Jarno <aurelien@aurel32.net> > > --- > v5 > - no longer wrapping tcg_gen_insn_start (was tcg_gen_debug) > - reword to handle only in_asm > - added r-b tag > --- > target-arm/translate-a64.c | 3 ++- > target-arm/translate.c | 3 ++- > 2 files changed, 4 insertions(+), 2 deletions(-) Reviewed-by: Richard Henderson <rth@twiddle.net> r~
diff --git a/target-arm/translate-a64.c b/target-arm/translate-a64.c index 7f65aea..e65263c 100644 --- a/target-arm/translate-a64.c +++ b/target-arm/translate-a64.c @@ -11213,7 +11213,8 @@ done_generating: gen_tb_end(tb, num_insns); #ifdef DEBUG_DISAS - if (qemu_loglevel_mask(CPU_LOG_TB_IN_ASM)) { + if (qemu_loglevel_mask(CPU_LOG_TB_IN_ASM) && + qemu_log_in_addr_range(pc_start)) { qemu_log("----------------\n"); qemu_log("IN: %s\n", lookup_symbol(pc_start)); log_target_disas(cs, pc_start, dc->pc - pc_start, diff --git a/target-arm/translate.c b/target-arm/translate.c index e69145d..665e9ab 100644 --- a/target-arm/translate.c +++ b/target-arm/translate.c @@ -11640,7 +11640,8 @@ done_generating: gen_tb_end(tb, num_insns); #ifdef DEBUG_DISAS - if (qemu_loglevel_mask(CPU_LOG_TB_IN_ASM)) { + if (qemu_loglevel_mask(CPU_LOG_TB_IN_ASM) && + qemu_log_in_addr_range(pc_start)) { qemu_log("----------------\n"); qemu_log("IN: %s\n", lookup_symbol(pc_start)); log_target_disas(cs, pc_start, dc->pc - pc_start,