Skip to contentSkip to conversation

target-arm: Log instruction start in TCG code

PATCH Applied Peter Maydell 2 participants 2 messages Jan 18, 2011

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 target-arm: Log instruction start in TCG code

Add support for logging the start of instructions in TCG code debug dumps for ARM targets.

---
 target-arm/translate.c |    4 ++++
 1 files changed, 4 insertions(+), 0 deletions(-)
target-arm/translate.c +4 -0
index 907d73a..c60cd18 100644
@@ -9199,6 +9199,10 @@ static inline void gen_intermediate_code_internal(CPUState *env,
         if (num_insns + 1 == max_insns && (tb->cflags & CF_LAST_IO))
             gen_io_start();
 
+        if (unlikely(qemu_loglevel_mask(CPU_LOG_TB_OP))) {
+            tcg_gen_debug_insn_start(dc->pc);
+        }
+
         if (dc->thumb) {
             disas_thumb_insn(env, dc);
             if (dc->condexec_mask) {
Signature · 1 line
1.7.1
#1 lore raw
Quoted 4 lines · Peter Maydell

Add support for logging the start of instructions in TCG code debug dumps for ARM targets.

Applied, thanks.

Quoted 23 lines
---
 target-arm/translate.c |    4 ++++
 1 files changed, 4 insertions(+), 0 deletions(-)
target-arm/translate.c +4 -0
index 907d73a..c60cd18 100644
@@ -9199,6 +9199,10 @@ static inline void gen_intermediate_code_internal(CPUState *env,
         if (num_insns + 1 == max_insns && (tb->cflags & CF_LAST_IO))
             gen_io_start();
 
+        if (unlikely(qemu_loglevel_mask(CPU_LOG_TB_OP))) {
+            tcg_gen_debug_insn_start(dc->pc);
+        }
+
         if (dc->thumb) {
             disas_thumb_insn(env, dc);
             if (dc->condexec_mask) {
Signature · 1 line
1.7.1