[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Qemu-devel] [PATCH v5 02/19] tcg: Log the contents of the prologue
From: |
Aurelien Jarno |
Subject: |
Re: [Qemu-devel] [PATCH v5 02/19] tcg: Log the contents of the prologue with -d out_asm |
Date: |
Sun, 21 Apr 2013 12:22:53 +0200 |
User-agent: |
Mutt/1.5.21 (2010-09-15) |
On Sun, Mar 31, 2013 at 03:34:48PM -0700, Richard Henderson wrote:
> This makes it easier to verify changes to the code
> generating the prologue.
>
> Signed-off-by: Richard Henderson <address@hidden>
> ---
> tcg/tcg.c | 10 ++++++++++
> 1 file changed, 10 insertions(+)
>
> diff --git a/tcg/tcg.c b/tcg/tcg.c
> index 1d8265e..de68c16 100644
> --- a/tcg/tcg.c
> +++ b/tcg/tcg.c
> @@ -268,6 +268,16 @@ void tcg_prologue_init(TCGContext *s)
> tcg_target_qemu_prologue(s);
> flush_icache_range((tcg_target_ulong)s->code_buf,
> (tcg_target_ulong)s->code_ptr);
> +
> +#ifdef DEBUG_DISAS
> + if (qemu_loglevel_mask(CPU_LOG_TB_OUT_ASM)) {
> + size_t size = s->code_ptr - s->code_buf;
> + qemu_log("PROLOGUE: [size=%d]\n", size);
> + log_disas(s->code_buf, size);
> + qemu_log("\n");
> + qemu_log_flush();
> + }
> +#endif
> }
>
> void tcg_set_frame(TCGContext *s, int reg,
Reviewed-by: Aurelien Jarno <address@hidden>
--
Aurelien Jarno GPG: 1024D/F1BCDB73
address@hidden http://www.aurel32.net
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- Re: [Qemu-devel] [PATCH v5 02/19] tcg: Log the contents of the prologue with -d out_asm,
Aurelien Jarno <=