Patchwork [1/3] target-alpha: Emit tcg debug_insn_start.

login
register
mail settings
Submitter Richard Henderson
Date Dec. 19, 2009, 11:17 p.m.
Message ID <2d2f4a285db07da0e453535318a463573c5397d4.1261264754.git.rth@twiddle.net>
Download mbox | patch
Permalink /patch/41484/
State New
Headers show

Comments

Richard Henderson - Dec. 19, 2009, 11:17 p.m.
Signed-off-by: Richard Henderson <rth@twiddle.net>
---
 target-alpha/translate.c |    5 +++++
 1 files changed, 5 insertions(+), 0 deletions(-)

Patch

diff --git a/target-alpha/translate.c b/target-alpha/translate.c
index 45cb697..5e0647b 100644
--- a/target-alpha/translate.c
+++ b/target-alpha/translate.c
@@ -2627,6 +2627,11 @@  static inline void gen_intermediate_code_internal(CPUState *env,
             gen_io_start();
         insn = ldl_code(ctx.pc);
         num_insns++;
+
+	if (unlikely(qemu_loglevel_mask(CPU_LOG_TB_OP))) {
+            tcg_gen_debug_insn_start(ctx.pc);
+        }
+
         ctx.pc += 4;
         ret = translate_one(ctxp, insn);
         if (ret != 0)