[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-devel] [PATCH v6 8/9] target-arm: dfilter support for in_asm
From: |
Alex Bennée |
Subject: |
[Qemu-devel] [PATCH v6 8/9] target-arm: dfilter support for in_asm |
Date: |
Thu, 11 Feb 2016 10:41:04 +0000 |
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 <address@hidden>
Reviewed-by: Aurelien Jarno <address@hidden>
---
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(-)
diff --git a/target-arm/translate-a64.c b/target-arm/translate-a64.c
index d780e09..98ba35c 100644
--- a/target-arm/translate-a64.c
+++ b/target-arm/translate-a64.c
@@ -11211,7 +11211,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 f6a38bc..267be26 100644
--- a/target-arm/translate.c
+++ b/target-arm/translate.c
@@ -11580,7 +11580,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,
--
2.7.0
- [Qemu-devel] [PATCH v6 0/9] qemu-log, -dfilter and other logging tweaks, Alex Bennée, 2016/02/11
- [Qemu-devel] [PATCH v6 1/9] tcg: pass down TranslationBlock to tcg_code_gen, Alex Bennée, 2016/02/11
- [Qemu-devel] [PATCH v6 2/9] qemu-log: correct help text for -d cpu, Alex Bennée, 2016/02/11
- [Qemu-devel] [PATCH v6 3/9] qemu-log: Avoid function call for disabled qemu_log_mask logging, Alex Bennée, 2016/02/11
- [Qemu-devel] [PATCH v6 5/9] qemu-log: support simple pid substitution in logfile, Alex Bennée, 2016/02/11
- [Qemu-devel] [PATCH v6 6/9] qemu-log: new option -dfilter to limit output, Alex Bennée, 2016/02/11
- [Qemu-devel] [PATCH v6 8/9] target-arm: dfilter support for in_asm,
Alex Bennée <=
- [Qemu-devel] [PATCH v6 4/9] qemu-log: Improve the "exec" TB execution logging, Alex Bennée, 2016/02/11
- [Qemu-devel] [PATCH v6 9/9] cputlb: modernise the debug support, Alex Bennée, 2016/02/11
- [Qemu-devel] [PATCH v6 7/9] qemu-log: dfilter-ise exec, out_asm, op and opt_op, Alex Bennée, 2016/02/11