From patchwork Thu Oct 15 21:51:57 2009 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Aurelien Jarno X-Patchwork-Id: 36153 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from lists.gnu.org (lists.gnu.org [199.232.76.165]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client did not present a certificate) by ozlabs.org (Postfix) with ESMTPS id E3441B7B8D for ; Fri, 16 Oct 2009 08:52:36 +1100 (EST) Received: from localhost ([127.0.0.1]:35406 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MyYFN-0005Ww-St for incoming@patchwork.ozlabs.org; Thu, 15 Oct 2009 17:52:33 -0400 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1MyYEt-0005Wj-Qt for qemu-devel@nongnu.org; Thu, 15 Oct 2009 17:52:03 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1MyYEs-0005WO-H7 for qemu-devel@nongnu.org; Thu, 15 Oct 2009 17:52:03 -0400 Received: from [199.232.76.173] (port=55894 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MyYEs-0005WL-FA for qemu-devel@nongnu.org; Thu, 15 Oct 2009 17:52:02 -0400 Received: from hall.aurel32.net ([88.191.82.174]:44334) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1MyYEr-0001s5-WB for qemu-devel@nongnu.org; Thu, 15 Oct 2009 17:52:02 -0400 Received: from [2002:52e8:2fb:1:21e:8cff:feb0:693b] (helo=volta.aurel32.net) by hall.aurel32.net with esmtpsa (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.69) (envelope-from ) id 1MyYEq-0001Gw-Hu for qemu-devel@nongnu.org; Thu, 15 Oct 2009 23:52:00 +0200 Received: from aurel32 by volta.aurel32.net with local (Exim 4.69) (envelope-from ) id 1MyYEn-0006ud-Sg for qemu-devel@nongnu.org; Thu, 15 Oct 2009 23:51:57 +0200 Date: Thu, 15 Oct 2009 23:51:57 +0200 From: Aurelien Jarno To: qemu-devel@nongnu.org Message-ID: <20091015215157.GD7071@volta.aurel32.net> MIME-Version: 1.0 Content-Disposition: inline User-Agent: Mutt/1.5.18 (2008-05-17) X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 3) Subject: [Qemu-devel] [PATCH] target-arm: log instructions start in TCG code X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org Errors-To: qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org Signed-off-by: Aurelien Jarno --- target-arm/translate.c | 4 ++++ 1 files changed, 4 insertions(+), 0 deletions(-) diff --git a/target-arm/translate.c b/target-arm/translate.c index 0c10ac2..bb0f8ef 100644 --- a/target-arm/translate.c +++ b/target-arm/translate.c @@ -8805,6 +8805,10 @@ static inline void gen_intermediate_code_internal(CPUState *env, if (num_insns + 1 == max_insns && (tb->cflags & CF_LAST_IO)) gen_io_start(); + if (unlikely(qemu_loglevel_mask(CPU_LOG_TB_OP))) { + tcg_gen_debug_insn_start(dc->pc); + } + if (env->thumb) { disas_thumb_insn(env, dc); if (dc->condexec_mask) {