target-arm: Log instruction start in TCG code
authorPeter Maydell <peter.maydell@linaro.org>
Tue, 18 Jan 2011 13:08:40 +0000 (13:08 +0000)
committerEdgar E. Iglesias <edgar.iglesias@gmail.com>
Tue, 18 Jan 2011 14:23:44 +0000 (15:23 +0100)
Add support for logging the start of instructions in TCG
code debug dumps for ARM targets.

Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
Signed-off-by: Edgar E. Iglesias <edgar.iglesias@gmail.com>
target-arm/translate.c

index 907d73a3d3117f22f819853e8bbe285b9975154a..c60cd18e1eed2c5a153407ba5e076165af694728 100644 (file)
@@ -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) {