From patchwork Tue Mar 15 14:30:22 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: 8588581 Return-Path: X-Original-To: patchwork-qemu-devel@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork1.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.136]) by patchwork1.web.kernel.org (Postfix) with ESMTP id 555F19F6E1 for ; Tue, 15 Mar 2016 14:31:12 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id A856F202AE for ; Tue, 15 Mar 2016 14:31:11 +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 4C14720122 for ; Tue, 15 Mar 2016 14:31:08 +0000 (UTC) Received: from localhost ([::1]:48587 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1afq03-0001AB-Kl for patchwork-qemu-devel@patchwork.kernel.org; Tue, 15 Mar 2016 10:31:07 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:48312) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1afpzb-00012h-Es for qemu-devel@nongnu.org; Tue, 15 Mar 2016 10:30:45 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1afpza-0005MP-FB for qemu-devel@nongnu.org; Tue, 15 Mar 2016 10:30:39 -0400 Received: from mail-wm0-x22f.google.com ([2a00:1450:400c:c09::22f]:38247) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1afpza-0005M3-9Z for qemu-devel@nongnu.org; Tue, 15 Mar 2016 10:30:38 -0400 Received: by mail-wm0-x22f.google.com with SMTP id l68so29327294wml.1 for ; Tue, 15 Mar 2016 07:30:38 -0700 (PDT) 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-transfer-encoding; bh=9E4Mfcl+ggWpFlPUF0tBhXAsvVad0cpKwabFwXwFPlM=; b=XmKnVrwI6v5NWbL9g+tyjWbX6JkqfpkV5LZh/9WElXY0s2/2up5nZ27r5PpBTQytg6 ih6Gjg6KBV3CD1zavq8SPzB8v+V0MIcRvq6FAMnkEq+X1CmKafmkCowwEbByDotOGQ9Y kUJFMntM6+C8o32k+0/0AwyOV+kJjUnEMjql4= 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-transfer-encoding; bh=9E4Mfcl+ggWpFlPUF0tBhXAsvVad0cpKwabFwXwFPlM=; b=dF8SDAg5DL3eWulitTbHHxXgpx074cZY9ll7l+/XOrW5OaZYMC2XGW7BAB7Uo7mPSp pTZakgxYXHCZqth2W0heVf7x2jdwffLLMGk7JzynHR6/pPDbdbn07PxzXQeAvbJROvAU +21fw64UZ5YurdKgT9tHAMTBq49ISjsbUeQvRy3PfzLdoKYeb0egEGzC3e+9snh1j6u+ ix88gUukfpRQ5RcXWXVbBrk9Ecp/n5AV38fklFqn7M5TtLR0BOEoo/eMLq0cut5Sj1wK wRb/Khx/9iOtc13de5sMbHXfC9yR6i9Yvx7pshvTPnLgLP0ykzkAXhg3cmJRZgkxOYza BpiQ== X-Gm-Message-State: AD7BkJICcqa89AYiz0ZXxn4lYPkXjVKPt9ShVyBDXMToyokqbHbjWAPacafE+IkFoEL7oq34 X-Received: by 10.28.51.9 with SMTP id z9mr22937265wmz.59.1458052237683; Tue, 15 Mar 2016 07:30:37 -0700 (PDT) Received: from zen.linaro.local ([81.128.185.34]) by smtp.gmail.com with ESMTPSA id p125sm21042637wmd.16.2016.03.15.07.30.30 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 15 Mar 2016 07:30:31 -0700 (PDT) Received: from zen.linaroharston (localhost [127.0.0.1]) by zen.linaro.local (Postfix) with ESMTP id 054203E04BD; Tue, 15 Mar 2016 14:30:28 +0000 (GMT) From: =?UTF-8?q?Alex=20Benn=C3=A9e?= To: qemu-devel@nongnu.org Date: Tue, 15 Mar 2016 14:30:22 +0000 Message-Id: <1458052224-9316-9-git-send-email-alex.bennee@linaro.org> X-Mailer: git-send-email 2.7.2 In-Reply-To: <1458052224-9316-1-git-send-email-alex.bennee@linaro.org> References: <1458052224-9316-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::22f Cc: Peter Maydell , 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 v9 7/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 Reviewed-by: Richard Henderson --- v5 - no longer wrapping tcg_gen_insn_start (was tcg_gen_debug) - reword to handle only in_asm - added r-b tag v8 - 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 f0c73df..b13cff7 100644 --- a/target-arm/translate-a64.c +++ b/target-arm/translate-a64.c @@ -11225,7 +11225,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 025c7a5..78df0b6 100644 --- a/target-arm/translate.c +++ b/target-arm/translate.c @@ -11718,7 +11718,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,