Patchwork [2/7] target-m68k: Call tcg_gen_debug_insn_start

login
register
mail settings
Submitter Richard Henderson
Date Sept. 24, 2012, 9:55 p.m.
Message ID <1348523753-25083-3-git-send-email-rth@twiddle.net>
Download mbox | patch
Permalink /patch/186593/
State New
Headers show

Comments

Richard Henderson - Sept. 24, 2012, 9:55 p.m.
Cc: Paul Brook <paul@codesourcery.com>
Signed-off-by: Richard Henderson <rth@twiddle.net>
---
 target-m68k/translate.c | 4 ++++
 1 file changed, 4 insertions(+)
Aurelien Jarno - Sept. 25, 2012, 10:44 p.m.
On Mon, Sep 24, 2012 at 02:55:48PM -0700, Richard Henderson wrote:
> Cc: Paul Brook <paul@codesourcery.com>
> Signed-off-by: Richard Henderson <rth@twiddle.net>
> ---
>  target-m68k/translate.c | 4 ++++
>  1 file changed, 4 insertions(+)
> 
> diff --git a/target-m68k/translate.c b/target-m68k/translate.c
> index fb707f2..451ef74 100644
> --- a/target-m68k/translate.c
> +++ b/target-m68k/translate.c
> @@ -2953,6 +2953,10 @@ static void disas_m68k_insn(CPUM68KState * env, DisasContext *s)
>  {
>      uint16_t insn;
>  
> +    if (unlikely(qemu_loglevel_mask(CPU_LOG_TB_OP | CPU_LOG_TB_OP_OPT))) {
> +        tcg_gen_debug_insn_start(s->pc);
> +    }
> +
>      insn = cpu_lduw_code(env, s->pc);
>      s->pc += 2;
>  
> -- 
> 1.7.11.4
> 
> 
> 

Reviewed-by: Aurelien Jarno <aurelien@aurel32.net>

Patch

diff --git a/target-m68k/translate.c b/target-m68k/translate.c
index fb707f2..451ef74 100644
--- a/target-m68k/translate.c
+++ b/target-m68k/translate.c
@@ -2953,6 +2953,10 @@  static void disas_m68k_insn(CPUM68KState * env, DisasContext *s)
 {
     uint16_t insn;
 
+    if (unlikely(qemu_loglevel_mask(CPU_LOG_TB_OP | CPU_LOG_TB_OP_OPT))) {
+        tcg_gen_debug_insn_start(s->pc);
+    }
+
     insn = cpu_lduw_code(env, s->pc);
     s->pc += 2;