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: 8223881 Return-Path: X-Original-To: patchwork-qemu-devel@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork2.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.136]) by patchwork2.web.kernel.org (Postfix) with ESMTP id C09D7BEEE5 for ; Thu, 4 Feb 2016 15:00:15 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 1A9242039C for ; Thu, 4 Feb 2016 15:00:15 +0000 (UTC) Received: from lists.gnu.org (lists.gnu.org [208.118.235.17]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 76AC8203A0 for ; Thu, 4 Feb 2016 15:00:13 +0000 (UTC) Received: from localhost ([::1]:42235 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aRLOG-0007Ej-Rs for patchwork-qemu-devel@patchwork.kernel.org; Thu, 04 Feb 2016 10:00:12 -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+patchwork-qemu-devel=patchwork.kernel.org@nongnu.org Sender: qemu-devel-bounces+patchwork-qemu-devel=patchwork.kernel.org@nongnu.org X-Spam-Status: No, score=-6.8 required=5.0 tests=BAYES_00,DKIM_SIGNED, RCVD_IN_DNSWL_HI, T_DKIM_INVALID, UNPARSEABLE_RELAY autolearn=ham version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP 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(-) 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,