From patchwork Fri Mar 4 11:18:05 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: 8502751 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 73C18C0553 for ; Fri, 4 Mar 2016 11:18:41 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id C4677201F2 for ; Fri, 4 Mar 2016 11:18:40 +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 BFC5320160 for ; Fri, 4 Mar 2016 11:18:39 +0000 (UTC) Received: from localhost ([::1]:40340 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1abnkl-0006BP-3e for patchwork-qemu-devel@patchwork.kernel.org; Fri, 04 Mar 2016 06:18:39 -0500 Received: from eggs.gnu.org ([2001:4830:134:3::10]:35248) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1abnkV-00064Z-RX for qemu-devel@nongnu.org; Fri, 04 Mar 2016 06:18:24 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1abnkV-0003rc-0a for qemu-devel@nongnu.org; Fri, 04 Mar 2016 06:18:23 -0500 Received: from mail-wm0-x22c.google.com ([2a00:1450:400c:c09::22c]:35913) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1abnkU-0003rV-R9 for qemu-devel@nongnu.org; Fri, 04 Mar 2016 06:18:22 -0500 Received: by mail-wm0-x22c.google.com with SMTP id n186so30039606wmn.1 for ; Fri, 04 Mar 2016 03:18:22 -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-transfer-encoding; bh=vGdLB5K6HS+usHKnJaWUTJtr+xu5Fwj/2WQLQOBCCNg=; b=HUSqwCO+3SINgVEC9Wg5QhQOvkIb66hkeYQ09Z+MyyELFA+lu/+86bEeXlOf6IPm2L XdlO8t1jbJZmPfUvJdV5jFLyVOFUZdJCI4U9VF4klcdORA7G64BNF3+9ZXZ0uzm74HcM xnM7aR8K4OHLGdEWJxgmpXGUSpWYtzrjjtd6A= 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=vGdLB5K6HS+usHKnJaWUTJtr+xu5Fwj/2WQLQOBCCNg=; b=Ij4aHjuPkrmAxRFi1n08uyltP1KBoqj6RClyy6wP/50nuEZCu+8cLtFmzPrg37KPBc XVcst9xKkKr3+Kh3V+TeK4zFAzQfOInuSY1NvnI08Ye6Hh5qvroOh9rSJrzIKppNSw6T 0RHol2km6XLKDNVodDhKNwivH393Rz7WbMz7jMp+nHiAzon//F8uGcwEFwt2D5PAGiRt M1J5BwMf+VwZWH542XTFXTWt0EwPBcfE01oWNdG9JYX1+1QqBv0P6Okj9z6/dw5zF1Va QwblmaIHrpJAp8FGyWJojS9FtF3tVTUaM+v9oktKCWZwEHlEq9tjuBlGWCPRcA3HELlb t0Kw== X-Gm-Message-State: AD7BkJI8KSdBbmZ9Gq3CBTbP2ey1Gw+KJvDhm0DS95csz01O8yjQTmks6DivcSnyVyJBgAjn X-Received: by 10.28.35.66 with SMTP id j63mr4573330wmj.78.1457090302350; Fri, 04 Mar 2016 03:18:22 -0800 (PST) Received: from zen.linaro.local ([81.128.185.34]) by smtp.gmail.com with ESMTPSA id e127sm2766091wma.20.2016.03.04.03.18.16 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 04 Mar 2016 03:18:20 -0800 (PST) Received: from zen.linaroharston (localhost [127.0.0.1]) by zen.linaro.local (Postfix) with ESMTP id BC8BF3E027E; Fri, 4 Mar 2016 11:18:13 +0000 (GMT) From: =?UTF-8?q?Alex=20Benn=C3=A9e?= To: qemu-devel@nongnu.org Date: Fri, 4 Mar 2016 11:18:05 +0000 Message-Id: <1457090287-8021-8-git-send-email-alex.bennee@linaro.org> X-Mailer: git-send-email 2.7.2 In-Reply-To: <1457090287-8021-1-git-send-email-alex.bennee@linaro.org> References: <1457090287-8021-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::22c 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 v8 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 7f65aea..e65263c 100644 --- a/target-arm/translate-a64.c +++ b/target-arm/translate-a64.c @@ -11213,7 +11213,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 c29c47f..fc4e73e 100644 --- a/target-arm/translate.c +++ b/target-arm/translate.c @@ -11640,7 +11640,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,