Received: from eggs.gnu.org ([208.118.235.92]:60982) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UMQqR-00004w-27 for qemu-devel@nongnu.org; Sun, 31 Mar 2013 18:35:29 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1UMQqN-0007iV-6D for qemu-devel@nongnu.org; Sun, 31 Mar 2013 18:35:22 -0400 Received: from mail-pa0-f50.google.com ([209.85.220.50]:57874) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UMQqN-0007iG-0Z for qemu-devel@nongnu.org; Sun, 31 Mar 2013 18:35:19 -0400 Received: by mail-pa0-f50.google.com with SMTP id bg2so1011708pad.23 for ; Sun, 31 Mar 2013 15:35:18 -0700 (PDT) Sender: Richard Henderson From: Richard Henderson Date: Sun, 31 Mar 2013 15:34:48 -0700 Message-Id: <1364769305-3687-3-git-send-email-rth@twiddle.net> In-Reply-To: <1364769305-3687-1-git-send-email-rth@twiddle.net> References: <1364769305-3687-1-git-send-email-rth@twiddle.net> Subject: [Qemu-devel] [PATCH v5 02/19] tcg: Log the contents of the prologue with -d out_asm List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Cc: Aurelien Jarno This makes it easier to verify changes to the code generating the prologue. Signed-off-by: Richard Henderson --- 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, -- 1.8.1.4