Skip to contentSkip to conversation

target-alpha: Emit tcg debug_insn_start.

PATCH In review Richard Henderson 2 participants 2 messages Dec 18, 2009 – Dec 19, 2009

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 target-alpha: Emit tcg debug_insn_start.

---
 target-alpha/translate.c |    4 ++++
 1 files changed, 4 insertions(+), 0 deletions(-)
target-alpha/translate.c +4 -0
index 45cb697..ceff9bf 100644
@@ -2627,6 +2627,10 @@ 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)
Signature · 1 line
1.6.5.2
#1 lore raw
Quoted 10 lines · Richard Henderson
---
 target-alpha/translate.c |    4 ++++
 1 files changed, 4 insertions(+), 0 deletions(-)
target-alpha/translate.c +0 -0
index 45cb697..ceff9bf 100644

target-alpha/translate.c static inline void gen_intermediate_code_internal(CPUState *env, · line 2633

Quoted 7 lines
target-alpha/translate.c +4 -0
@@ -2627,6 +2627,10 @@ 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);
+

The coding style is wrong, you should use spaces instead of tabs. Also use braces after if. Otherwise it's ok.

Quoted 9 lines
target-alpha/translate.c +0 -0
         ctx.pc += 4;
         ret = translate_one(ctxp, insn);
         if (ret != 0)
Signature · 1 line
1.6.5.2
Signature · 2 lines
Aurelien Jarno	                        GPG: 1024D/F1BCDB73
[email protected]                 http://www.aurel32.net