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: 1 Return-Path: Delivered-To: unknown Received: from imap.gmail.com (74.125.159.109) by localhost6.localdomain6 with IMAP4-SSL; 08 Jun 2011 14:39:08 -0000 Delivered-To: patches@linaro.org Received: by 10.147.124.10 with SMTP id b10cs105263yan; Tue, 18 Jan 2011 05:08:44 -0800 (PST) Received: by 10.216.154.83 with SMTP id g61mr5019094wek.87.1295356122333; Tue, 18 Jan 2011 05:08:42 -0800 (PST) Received: from mnementh.archaic.org.uk (mnementh.archaic.org.uk [81.2.115.146]) by mx.google.com with ESMTPS id p44si8273609wej.93.2011.01.18.05.08.41 (version=TLSv1/SSLv3 cipher=RC4-MD5); Tue, 18 Jan 2011 05:08:42 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of pm215@archaic.org.uk designates 81.2.115.146 as permitted sender) client-ip=81.2.115.146; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of pm215@archaic.org.uk designates 81.2.115.146 as permitted sender) smtp.mail=pm215@archaic.org.uk 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 Cc: patches@linaro.org Subject: [PATCH] target-arm: Log instruction start in TCG code 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 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) {