From patchwork Thu Feb 4 14:56:20 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: 61194 Delivered-To: patch@linaro.org Received: by 10.112.43.199 with SMTP id y7csp506646lbl; Thu, 4 Feb 2016 07:01:03 -0800 (PST) X-Received: by 10.140.100.141 with SMTP id s13mr9235947qge.25.1454598062585; Thu, 04 Feb 2016 07:01:02 -0800 (PST) Return-Path: Received: from lists.gnu.org (lists.gnu.org. [2001:4830:134:3::11]) by mx.google.com with ESMTPS id q205si10931142qhq.67.2016.02.04.07.01.02 for (version=TLS1 cipher=AES128-SHA bits=128/128); Thu, 04 Feb 2016 07:01:02 -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]:42244 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aRLP4-00087q-4u for patch@linaro.org; Thu, 04 Feb 2016 10:01:02 -0500 Received: from eggs.gnu.org ([2001:4830:134:3::10]:39116) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aRLKx-0001tg-Td for qemu-devel@nongnu.org; Thu, 04 Feb 2016 09:56:49 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1aRLKs-0001UF-2k for qemu-devel@nongnu.org; Thu, 04 Feb 2016 09:56:47 -0500 Received: from mail-wm0-x22b.google.com ([2a00:1450:400c:c09::22b]:32978) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aRLKr-0001Tt-Sw for qemu-devel@nongnu.org; Thu, 04 Feb 2016 09:56:42 -0500 Received: by mail-wm0-x22b.google.com with SMTP id g62so8260532wme.0 for ; Thu, 04 Feb 2016 06:56:41 -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=/qPzuahneZvEdqbQGpo/m2EFNKmhDuQsDudiKwZ8LvA=; b=Y6m4x9ZwBufUfAoynIQ4Y2oOEawg8MAmR1568CGbBQ0eMagX7S1FVSHc0LUmCQPDzS eUh+KJS2MkUAw2vuuAsRLwB8YNhVKqFTdhYIDJG6rIUBUuwwd+vJ1B5Joa2Ed2XvFswY sCpC4B4buFNkLdIuk6DkrGF3jebo8soP+DtfU= 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=/qPzuahneZvEdqbQGpo/m2EFNKmhDuQsDudiKwZ8LvA=; b=A/XbjvEQu4uWeHLbFur9JKhUdG8UJ21FpGJHspwmQ7qrx/72Sm/KDXKeZvkdtWQUlo 9KzE7R04pRe2GMrgc4L3+RnWlze35XnmMwFtbJJhq2nfcDsJ7SXcP5ycZLfyY6bpIkMk SEAH24A6Guduism3FRyVBVElK893IQK5aiAMf7fdWNNV5by7qrzsXGE7KdyxicRb2tbg vckOVyMAloaSEuM5q88mhVNxzE2us9MlqEDOtrMreAQ2U1Mwaq+cj/Rem/reGgDtgChh xGQfG9lMrJCQUG5+wYZgB+M1yTcQSSP+OSxah9zdyC/3IWjZo+Fqlm1ee/6gDVznE7dV ruAA== X-Gm-Message-State: AG10YOQsGu+vyapiPaLxbx6ZqbZUp03Fx0jJQI1xYKBYEXjzUHhkCaWvzLP7s5j44oLqtGbz X-Received: by 10.195.11.100 with SMTP id eh4mr9246723wjd.83.1454597801216; Thu, 04 Feb 2016 06:56:41 -0800 (PST) Received: from zen.linaro.local ([81.128.185.34]) by smtp.gmail.com with ESMTPSA id i5sm11672416wja.23.2016.02.04.06.56.33 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 04 Feb 2016 06:56:37 -0800 (PST) Received: from zen.linaroharston (localhost [127.0.0.1]) by zen.linaro.local (Postfix) with ESMTP id 2C3223E1027; Thu, 4 Feb 2016 14:56:30 +0000 (GMT) From: =?UTF-8?q?Alex=20Benn=C3=A9e?= To: qemu-devel@nongnu.org Date: Thu, 4 Feb 2016 14:56:20 +0000 Message-Id: <1454597781-18115-9-git-send-email-alex.bennee@linaro.org> X-Mailer: git-send-email 2.7.0 In-Reply-To: <1454597781-18115-1-git-send-email-alex.bennee@linaro.org> References: <1454597781-18115-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@linaro.org, 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 v5 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 80f6c20..f488218 100644 --- a/target-arm/translate-a64.c +++ b/target-arm/translate-a64.c @@ -11210,7 +11210,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 cff511b..5dd1054 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,