Patchwork target-alpha: Emit tcg debug_insn_start.

login
register
mail settings
Submitter Richard Henderson
Date Dec. 17, 2009, 2:33 a.m.
Message ID <20091218221500.B4C84A46@are.twiddle.net>
Download mbox | patch
Permalink /patch/41433/
State New
Headers show

Comments

Richard Henderson - Dec. 17, 2009, 2:33 a.m.
Signed-off-by: Richard Henderson <rth@twiddle.net>
---
 target-alpha/translate.c |    4 ++++
 1 files changed, 4 insertions(+), 0 deletions(-)
Aurelien Jarno - Dec. 19, 2009, 3:47 p.m.
On Wed, Dec 16, 2009 at 06:33:05PM -0800, Richard Henderson wrote:
> Signed-off-by: Richard Henderson <rth@twiddle.net>
> ---
>  target-alpha/translate.c |    4 ++++
>  1 files changed, 4 insertions(+), 0 deletions(-)
> 
> diff --git a/target-alpha/translate.c b/target-alpha/translate.c
> index 45cb697..ceff9bf 100644
> --- a/target-alpha/translate.c
> +++ b/target-alpha/translate.c
> @@ -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.

>          ctx.pc += 4;
>          ret = translate_one(ctxp, insn);
>          if (ret != 0)
> -- 
> 1.6.5.2
> 
> 
> 
>

Patch

diff --git a/target-alpha/translate.c b/target-alpha/translate.c
index 45cb697..ceff9bf 100644
--- a/target-alpha/translate.c
+++ b/target-alpha/translate.c
@@ -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)