From patchwork Sun Mar 31 22:34:48 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Richard Henderson X-Patchwork-Id: 232635 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from lists.gnu.org (lists.gnu.org [208.118.235.17]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (Client did not present a certificate) by ozlabs.org (Postfix) with ESMTPS id 1F1A32C0104 for ; Mon, 1 Apr 2013 09:36:16 +1100 (EST) Received: from localhost ([::1]:56029 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UMQrG-0000G2-8w for incoming@patchwork.ozlabs.org; Sun, 31 Mar 2013 18:36:14 -0400 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) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=x-received:sender:from:to:cc:subject:date:message-id:x-mailer :in-reply-to:references; bh=8NwrNxLwh8vfMGYkWAsyJBLnYTlx6etoZ8RT/Dm7Ey4=; b=nn5FzAax90ctaklmVys4eGdVWSEYVkuaMYUaTPvUxksY5OjvaweNtIjva7vwZKywZ2 cdlEl69j8hqnXb3swaD+7aGUwz5XxUlj0QNlgDUwXh2yEOberGDp6s563XzseSvVNLJd s0fvqhZCQShdDYskhAMUFB/CpSvWyZl2hppoz00/3C5PRd6j8Dw6MKJUbBpP10yBHeQY o+5ntkmb8bY2iIY0qBO0mw1C2E1gR5lbhIhbAffjKgl+uo1WMbqd4RqgT5C5UQlTSJ+Z V+44rZYP48hBDcTd5tZRHHx990sPg7ZaSWAIl7R5/1Xxugrk8NkCjDhuAph3miO5+8bF 7Hsw== X-Received: by 10.66.8.34 with SMTP id o2mr15561775paa.182.1364769318282; Sun, 31 Mar 2013 15:35:18 -0700 (PDT) Received: from fremont.twiddle.net (50-194-63-110-static.hfc.comcastbusiness.net. [50.194.63.110]) by mx.google.com with ESMTPS id ve7sm12586235pab.11.2013.03.31.15.35.16 (version=TLSv1.2 cipher=RC4-SHA bits=128/128); Sun, 31 Mar 2013 15:35:17 -0700 (PDT) From: Richard Henderson To: qemu-devel@nongnu.org Date: Sun, 31 Mar 2013 15:34:48 -0700 Message-Id: <1364769305-3687-3-git-send-email-rth@twiddle.net> X-Mailer: git-send-email 1.8.1.4 In-Reply-To: <1364769305-3687-1-git-send-email-rth@twiddle.net> References: <1364769305-3687-1-git-send-email-rth@twiddle.net> X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x [fuzzy] X-Received-From: 209.85.220.50 Cc: Aurelien Jarno Subject: [Qemu-devel] [PATCH v5 02/19] tcg: Log the contents of the prologue with -d out_asm X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org Sender: qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org This makes it easier to verify changes to the code generating the prologue. Signed-off-by: Richard Henderson Reviewed-by: Aurelien Jarno --- 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,