From patchwork Thu Feb 11 10:41:04 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?q?Alex_Benn=C3=A9e?= X-Patchwork-Id: 61726 Delivered-To: patch@linaro.org Received: by 10.112.43.199 with SMTP id y7csp112663lbl; Thu, 11 Feb 2016 02:46:01 -0800 (PST) X-Received: by 10.140.151.4 with SMTP id 4mr56398503qhx.16.1455187561876; Thu, 11 Feb 2016 02:46:01 -0800 (PST) Return-Path: Received: from lists.gnu.org (lists.gnu.org. [2001:4830:134:3::11]) by mx.google.com with ESMTPS id y13si8948105qgd.82.2016.02.11.02.46.01 for (version=TLS1 cipher=AES128-SHA bits=128/128); Thu, 11 Feb 2016 02:46:01 -0800 (PST) Received-SPF: pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 2001:4830:134:3::11 as permitted sender) client-ip=2001:4830:134:3::11; Authentication-Results: mx.google.com; spf=pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 2001:4830:134:3::11 as permitted sender) smtp.mailfrom=qemu-devel-bounces+patch=linaro.org@nongnu.org; dkim=fail header.i=@linaro.org Received: from localhost ([::1]:48560 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aTol7-0007z6-EP for patch@linaro.org; Thu, 11 Feb 2016 05:46:01 -0500 Received: from eggs.gnu.org ([2001:4830:134:3::10]:59310) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aTogo-0000Ng-Lc for qemu-devel@nongnu.org; Thu, 11 Feb 2016 05:41:38 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1aTogn-0004rY-RS for qemu-devel@nongnu.org; Thu, 11 Feb 2016 05:41:34 -0500 Received: from mail-wm0-x22b.google.com ([2a00:1450:400c:c09::22b]:35417) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aTogn-0004rQ-LW for qemu-devel@nongnu.org; Thu, 11 Feb 2016 05:41:33 -0500 Received: by mail-wm0-x22b.google.com with SMTP id c200so66681796wme.0 for ; Thu, 11 Feb 2016 02:41:33 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-type:content-transfer-encoding; bh=s7U6BtR0kxT9HVIeaxVaMnIcfyBOUpJ8QeFsypblncA=; b=IOvJy4RixsJe724AlpvRNy1qnsE82n+7UgdOcOODuVKyeWmqe3cPU+5wYttmrbpcDk 3q5eDWIuZV0HEh9gk9rfVsiyh5gJCeiJWFzNhFM9zudZBwhrbLZOK1sMM++027Zjxguk bl9aSpor6HIlZBF/bC+dnJzflwzOdKP4Xk7yY= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-type:content-transfer-encoding; bh=s7U6BtR0kxT9HVIeaxVaMnIcfyBOUpJ8QeFsypblncA=; b=ihar5MqbDwjivKws38ENGgG7sBPACsDQhVIOu3zqRjW1XSpSN/sqd/t1VlsfRwNl4F iG2Vt1otcjALVpIbdI5Z0JCqBpuWdkzIbeAL15XvLtg22cmidMHKggXh1vRdEi+RIZCo YDllxHQm1iEeyWGg2oGUOXt9p1DMBYkl95AHyuqzvb8vZv5IkC0iY7IZFlpUIXRByxLm 6euX58f6q4Jd0Jjbf2+6+goqkCM88WCY3OxCJcg1598uY/QvCIiAHYI47wKVt6Lydt8w 6a48Qdw3YvFP5Z0X63ksTElkac73ymjm827oN+86O2B3Epv8aczjZ16rvpLK7tXy9qI0 WtMg== X-Gm-Message-State: AG10YOQOHVGtViKnIG9fU7sKhMIBdyXvfYmwpPl21Bc+b53dy4TGQgqjMwJHPITTMDvVCQUs X-Received: by 10.194.249.69 with SMTP id ys5mr43152997wjc.97.1455187293112; Thu, 11 Feb 2016 02:41:33 -0800 (PST) Received: from zen.linaro.local ([81.128.185.34]) by smtp.gmail.com with ESMTPSA id l132sm1653866wmf.7.2016.02.11.02.41.25 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 11 Feb 2016 02:41:29 -0800 (PST) Received: from zen.linaroharston (localhost [127.0.0.1]) by zen.linaro.local (Postfix) with ESMTP id 387E03E0228; Thu, 11 Feb 2016 10:41:23 +0000 (GMT) From: =?UTF-8?q?Alex=20Benn=C3=A9e?= To: qemu-devel@nongnu.org Date: Thu, 11 Feb 2016 10:41:04 +0000 Message-Id: <1455187265-26631-9-git-send-email-alex.bennee@linaro.org> X-Mailer: git-send-email 2.7.0 In-Reply-To: <1455187265-26631-1-git-send-email-alex.bennee@linaro.org> References: <1455187265-26631-1-git-send-email-alex.bennee@linaro.org> MIME-Version: 1.0 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 2a00:1450:400c:c09::22b Cc: Peter Maydell , dgilbert@redhat.com, crosthwaitepeter@gmail.com, "open list:ARM" , pbonzini@redhat.com, =?UTF-8?q?Alex=20Benn=C3=A9e?= , aurelien@aurel32.net, rth@twiddle.net Subject: [Qemu-devel] [PATCH v6 8/9] target-arm: dfilter support for in_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+patch=linaro.org@nongnu.org Sender: qemu-devel-bounces+patch=linaro.org@nongnu.org Each individual architecture needs to use the qemu_log_in_addr_range() feature for enabling in_asm output as it is part of the frontend. Signed-off-by: Alex Bennée Reviewed-by: Aurelien Jarno --- v5 - no longer wrapping tcg_gen_insn_start (was tcg_gen_debug) - reword to handle only in_asm - added r-b tag --- target-arm/translate-a64.c | 3 ++- target-arm/translate.c | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) -- 2.7.0 diff --git a/target-arm/translate-a64.c b/target-arm/translate-a64.c index d780e09..98ba35c 100644 --- a/target-arm/translate-a64.c +++ b/target-arm/translate-a64.c @@ -11211,7 +11211,8 @@ done_generating: gen_tb_end(tb, num_insns); #ifdef DEBUG_DISAS - if (qemu_loglevel_mask(CPU_LOG_TB_IN_ASM)) { + if (qemu_loglevel_mask(CPU_LOG_TB_IN_ASM) && + qemu_log_in_addr_range(pc_start)) { qemu_log("----------------\n"); qemu_log("IN: %s\n", lookup_symbol(pc_start)); log_target_disas(cs, pc_start, dc->pc - pc_start, diff --git a/target-arm/translate.c b/target-arm/translate.c index f6a38bc..267be26 100644 --- a/target-arm/translate.c +++ b/target-arm/translate.c @@ -11580,7 +11580,8 @@ done_generating: gen_tb_end(tb, num_insns); #ifdef DEBUG_DISAS - if (qemu_loglevel_mask(CPU_LOG_TB_IN_ASM)) { + if (qemu_loglevel_mask(CPU_LOG_TB_IN_ASM) && + qemu_log_in_addr_range(pc_start)) { qemu_log("----------------\n"); qemu_log("IN: %s\n", lookup_symbol(pc_start)); log_target_disas(cs, pc_start, dc->pc - pc_start,