From patchwork Thu Aug 11 15:23:58 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: 73760 Delivered-To: patch@linaro.org Received: by 10.140.29.52 with SMTP id a49csp165988qga; Thu, 11 Aug 2016 08:26:45 -0700 (PDT) X-Received: by 10.55.158.16 with SMTP id h16mr10826902qke.111.1470929205354; Thu, 11 Aug 2016 08:26:45 -0700 (PDT) Return-Path: Received: from lists.gnu.org (lists.gnu.org. [2001:4830:134:3::11]) by mx.google.com with ESMTPS id 46si1845967qtt.78.2016.08.11.08.26.45 for (version=TLS1 cipher=AES128-SHA bits=128/128); Thu, 11 Aug 2016 08:26:45 -0700 (PDT) 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; dkim=fail header.i=@linaro.org; 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; dmarc=fail (p=NONE dis=NONE) header.from=linaro.org Received: from localhost ([::1]:49148 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bXrsa-0004kX-SE for patch@linaro.org; Thu, 11 Aug 2016 11:26:44 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:57272) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bXrqN-0003ZJ-Qi for qemu-devel@nongnu.org; Thu, 11 Aug 2016 11:24:28 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bXrqL-0006Xw-H4 for qemu-devel@nongnu.org; Thu, 11 Aug 2016 11:24:26 -0400 Received: from mail-wm0-x22a.google.com ([2a00:1450:400c:c09::22a]:38617) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bXrqL-0006Xf-A8 for qemu-devel@nongnu.org; Thu, 11 Aug 2016 11:24:25 -0400 Received: by mail-wm0-x22a.google.com with SMTP id o80so3107414wme.1 for ; Thu, 11 Aug 2016 08:24:25 -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=aCPLj5IRGgL+erhOfqLfrBXjpc8FcuOxDODcXOWbDnc=; b=EU5bm/ROMcQ1M4gn9BFP7OAC8lE4PA9h5qtA9BXW73E9WXJmoCS9IbyZhU40qLd0ux lxk5Qs4sz014VkiquJYRvTHKy48GIOqxC+MP0gpz/+UWFA68zvRKHacTm67ji2W5vTO5 fAXDGogbVlzZKEL70uePGeRh8vwrBjM81q/XE= 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=aCPLj5IRGgL+erhOfqLfrBXjpc8FcuOxDODcXOWbDnc=; b=HNBdgjrFfx1jZ7Zre8tYfE1DR6qEArLZexblb8MzvmZVuAZVwvH1+r8rxcs/5UcqtK Q3PAQBi+ih8bcVDBlaEne1xwWNlchYEGh+iB66j4BHX4/IufGqu520xvSfJEfguEyC9h pPpwZIJbwRqXC8Tuq86dPIlXhPEBN27pMOauEZbCwut52ZReuB3yhkCf7l+pHXGiOFIR OgWwWTZFzNLMWhf8v8oGBqMGYkP2Wws3ZM+uAgzfSDyyk0sELwClNiXf+EaTCuOpZ8WU CcoREQOCZmNisZtzayxfq+xhUcfubqHe4SOMxgTtcmElczqyj9fW3En/RHfRl4Z7KGRH l//w== X-Gm-Message-State: AEkoouu+0+8erCW69TDM++DL/mv7ScGiK+M6UwmEaWKAuWlcYIhjAa1YUbOaVY3GSlU4QBYq X-Received: by 10.194.175.38 with SMTP id bx6mr11769689wjc.47.1470929064544; Thu, 11 Aug 2016 08:24:24 -0700 (PDT) Received: from zen.linaro.local ([81.128.185.34]) by smtp.gmail.com with ESMTPSA id z18sm598852wmz.6.2016.08.11.08.24.20 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 11 Aug 2016 08:24:20 -0700 (PDT) Received: from zen.linaroharston (localhost [127.0.0.1]) by zen.linaro.local (Postfix) with ESMTP id 01C103E023B; Thu, 11 Aug 2016 16:24:30 +0100 (BST) From: =?UTF-8?q?Alex=20Benn=C3=A9e?= To: mttcg@listserver.greensocs.com, qemu-devel@nongnu.org, fred.konrad@greensocs.com, a.rigo@virtualopensystems.com, cota@braap.org, bobby.prani@gmail.com, nikunj@linux.vnet.ibm.com Date: Thu, 11 Aug 2016 16:23:58 +0100 Message-Id: <1470929064-4092-3-git-send-email-alex.bennee@linaro.org> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1470929064-4092-1-git-send-email-alex.bennee@linaro.org> References: <1470929064-4092-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::22a Subject: [Qemu-devel] [RFC v4 02/28] translate_all: DEBUG_FLUSH -> DEBUG_TB_FLUSH X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: peter.maydell@linaro.org, claudio.fontana@huawei.com, Peter Crosthwaite , jan.kiszka@siemens.com, mark.burton@greensocs.com, serge.fdrv@gmail.com, pbonzini@redhat.com, =?UTF-8?q?Alex=20Benn=C3=A9e?= , rth@twiddle.net Errors-To: qemu-devel-bounces+patch=linaro.org@nongnu.org Sender: "Qemu-devel" Make the debug define consistent with the others. The flush operation is all about invalidating TranslationBlocks on flush events. Also fix up the commenting on the other DEBUG for the benefit of checkpatch. Signed-off-by: Alex Bennée Reviewed-by: Richard Henderson --- translate-all.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) -- 2.7.4 diff --git a/translate-all.c b/translate-all.c index 60527ad..b7d5adf 100644 --- a/translate-all.c +++ b/translate-all.c @@ -56,10 +56,10 @@ #include "qemu/timer.h" #include "exec/log.h" -//#define DEBUG_TB_INVALIDATE -//#define DEBUG_FLUSH +/* #define DEBUG_TB_INVALIDATE */ +/* #define DEBUG_TB_FLUSH */ /* make various TB consistency checks */ -//#define DEBUG_TB_CHECK +/* #define DEBUG_TB_CHECK */ #if !defined(CONFIG_USER_ONLY) /* TB consistency checks only implemented for usermode emulation. */ @@ -837,7 +837,7 @@ static void do_tb_flush(CPUState *cpu, void *data) if (tcg_ctx.tb_ctx.nb_tbs == 0) { return; } -#if defined(DEBUG_FLUSH) +#if defined(DEBUG_TB_FLUSH) printf("qemu: flush code_size=%ld nb_tbs=%d avg_tb_size=%ld\n", (unsigned long)(tcg_ctx.code_gen_ptr - tcg_ctx.code_gen_buffer), tcg_ctx.tb_ctx.nb_tbs, tcg_ctx.tb_ctx.nb_tbs > 0 ?