Received: from eggs.gnu.org ([208.118.235.92]:47894) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UVbCB-0001x0-Gv for qemu-devel@nongnu.org; Fri, 26 Apr 2013 01:27:44 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1UVbC9-0004uZ-F0 for qemu-devel@nongnu.org; Fri, 26 Apr 2013 01:27:43 -0400 Received: from hall.aurel32.net ([2001:470:1f15:c4f::1]:49581) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UVbC9-0004pB-8m for qemu-devel@nongnu.org; Fri, 26 Apr 2013 01:27:41 -0400 Date: Fri, 26 Apr 2013 07:27:21 +0200 From: Aurelien Jarno Message-ID: <20130426052721.GJ22106@hall.aurel32.net> References: <1366750012-25015-1-git-send-email-rth@twiddle.net> <1366750012-25015-3-git-send-email-rth@twiddle.net> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-15 Content-Disposition: inline In-Reply-To: <1366750012-25015-3-git-send-email-rth@twiddle.net> Sender: Aurelien Jarno Subject: Re: [Qemu-devel] [PATCH v6 02/20] tcg: Log the contents of the prologue with -d out_asm List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Richard Henderson Cc: qemu-devel@nongnu.org On Tue, Apr 23, 2013 at 01:46:34PM -0700, Richard Henderson wrote: > This makes it easier to verify changes to the code > generating the prologue. > > Reviewed-by: Aurelien Jarno > 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); This part doesn't compile on 64-bit hosts, where size_t is 64-bit. > + 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 > > > -- Aurelien Jarno GPG: 1024D/F1BCDB73 aurelien@aurel32.net http://www.aurel32.net