From patchwork Tue Jan 18 13:08:40 2011 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Peter Maydell X-Patchwork-Id: 79298 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 770B5B7107 for ; Wed, 19 Jan 2011 00:09:34 +1100 (EST) Received: from localhost ([127.0.0.1]:38575 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PfBJS-0006kS-Nn for incoming@patchwork.ozlabs.org; Tue, 18 Jan 2011 08:09:30 -0500 Received: from [140.186.70.92] (port=46813 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PfBIp-0006i5-Cm for qemu-devel@nongnu.org; Tue, 18 Jan 2011 08:08:56 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1PfBIn-0005uk-Bc for qemu-devel@nongnu.org; Tue, 18 Jan 2011 08:08:51 -0500 Received: from mnementh.archaic.org.uk ([81.2.115.146]:31580) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1PfBIm-0005sD-Iv for qemu-devel@nongnu.org; Tue, 18 Jan 2011 08:08:49 -0500 Received: from pm215 by mnementh.archaic.org.uk with local (Exim 4.69) (envelope-from ) id 1PfBIe-00072W-7Z; Tue, 18 Jan 2011 13:08:40 +0000 From: Peter Maydell To: qemu-devel@nongnu.org Date: Tue, 18 Jan 2011 13:08:40 +0000 Message-Id: <1295356120-27039-1-git-send-email-peter.maydell@linaro.org> X-Mailer: git-send-email 1.7.1 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 2) Cc: patches@linaro.org Subject: [Qemu-devel] [PATCH] target-arm: Log instruction 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 Add support for logging the start of instructions in TCG code debug dumps for ARM targets. Signed-off-by: Peter Maydell --- 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 907d73a..c60cd18 100644 --- a/target-arm/translate.c +++ b/target-arm/translate.c @@ -9199,6 +9199,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 (dc->thumb) { disas_thumb_insn(env, dc); if (dc->condexec_mask) {