From patchwork Tue Jul 5 10:59:55 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Richard Henderson X-Patchwork-Id: 587444 Delivered-To: patch@linaro.org Received: by 2002:a05:7000:1ec:0:0:0:0 with SMTP id 12csp1657757map; Tue, 5 Jul 2022 04:20:53 -0700 (PDT) X-Google-Smtp-Source: AGRyM1upV0gApEmBYXIFegBrBBWzSRaq2sKIRz/NEAVj/NFtpsUki2sCOqkz+d+GMkM4C5n2YdfU X-Received: by 2002:a0c:f40c:0:b0:472:ff75:49ce with SMTP id h12-20020a0cf40c000000b00472ff7549cemr4788024qvl.91.1657020052916; Tue, 05 Jul 2022 04:20:52 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1657020052; cv=none; d=google.com; s=arc-20160816; b=xJD6VnJod5vAjgK3VuRXurWrdbStO+fJppXXqtUhlmDtG571XHGDIMv+nMDJdlRr6Z MPzBG2vSxzcxSD+9hT4+ctE5hTB3K4vibwA61X22NESpsisdknv+APbBPT4at9KfsJgU RdttmmuS2AJbNrViDp0tyhcX6mkR1auUSojDHmY+rKpFbJltPd+IpcsweHz0fYyk2Y7k qZc4d1DLl5DgJqRgGLasK4wBQDdZJjma9RbvX09duAtgsjdRT09wS1hLIpcSdRyLcBS5 P340CtvGUZkZunYfLR7+cU9tMmUos5YKk/tcpzLIazKLTxcmCZ1XqBscyRZKJ086fAkw 70VQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:list-subscribe:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:content-transfer-encoding :mime-version:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=y9T0Dgh+y//OTwBqoQX1MWiwDSflPGnZ8HYkylQu7wI=; b=LtjTV4VVWt5lhbglyQ1HftQmfei13OowN3mQGL0BNZ+1MYJ5SedUPbMjMbSWh31xA5 cJcBeX2ATc6T55gS1/gHg4jrUAAPJ8DGh0RyrQlzdeOYIaCKa5kW+rK9BUSJ3HL2VbSP ravM8YT+priuVgGb+jRApzLxN8nL2WV8zKqgQJkZERY4YJOmzQh9ZcEKK44ecAYTyg/p 5rj8go/fshuJ/avm3hwFpnLDyKDWsvfDJ7IICgneCHscQfP87asCSsoc5AEaD0we6Oay 58kx88SCPpP2DuegNZQ66zC6+6uoJvJ+aWPCYfKZFo1muO1MjvPUbgNlshgtfxM5NGDy ag8A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=EQU3B7Lx; spf=pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom="qemu-devel-bounces+patch=linaro.org@nongnu.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from lists.gnu.org (lists.gnu.org. [209.51.188.17]) by mx.google.com with ESMTPS id jk12-20020ad45d4c000000b0046447f15331si20617384qvb.376.2022.07.05.04.20.52 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Tue, 05 Jul 2022 04:20:52 -0700 (PDT) Received-SPF: pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=EQU3B7Lx; spf=pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom="qemu-devel-bounces+patch=linaro.org@nongnu.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from localhost ([::1]:36964 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1o8gbs-0002I5-Ht for patch@linaro.org; Tue, 05 Jul 2022 07:20:52 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:40320) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1o8gI1-0006wD-3Y for qemu-devel@nongnu.org; Tue, 05 Jul 2022 07:00:26 -0400 Received: from mail-pl1-x629.google.com ([2607:f8b0:4864:20::629]:41800) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1o8gHv-0000i1-Oj for qemu-devel@nongnu.org; Tue, 05 Jul 2022 07:00:20 -0400 Received: by mail-pl1-x629.google.com with SMTP id j12so3900026plj.8 for ; Tue, 05 Jul 2022 04:00:15 -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=y9T0Dgh+y//OTwBqoQX1MWiwDSflPGnZ8HYkylQu7wI=; b=EQU3B7LxNZnUFF7ESH7A/1GhSlgrkBgDNDuRfCBJXoM+VAUv18YshTvRl8ZAAuDBMl HcLjUy8aLVpiB9e3TuqkjEoo9VqX2R/Kaz31Ucw/I56rEk6TqqMJvCZyiOvyFGN3sIeF coCxsORuLHRAwlDpZMzSF59JRpeF6GttLcBOAgL/5UrvV/zBgc+5A69Pdz3JA6mY7LQe W+BQww2Ieup1b4er5VkIFN3jtktnyYb6m/0uTgPPdaYZTWpPTT/5/kb9fEirRpU9IPcH XdNSKApqRV4wPVI5LmXS8XbU8WRucojlbThLeEQ3mcC/1Z40kLajdeNvln84lDJ9VS96 ounQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=y9T0Dgh+y//OTwBqoQX1MWiwDSflPGnZ8HYkylQu7wI=; b=TRq77//GX/YM7Gp2wYyTfm26c7IICvXEGcGWADXxt7gq5JgOnV3TTIVNrZiJY9vPAg xhcaSD285KNSJo7m6r9EjXQIzeVs+cIQqtLGEaQE3I3j95OLHcaOrZ1/ASYW8tOHm7Sv 6T98nnuGawIdOkpWub52UQur0BP+h4m8atcOF47coIBOf8nF92ei3JbvT4Bd+7rYZmOk FgyMafEZLtP1JVwcrcoEcdKeN2M0h0J5EzXcMeV5bjHJHYPbUhOyhA69zG8iakpJKRJe 4UJYsAyQ+Gs89hyJVhQrmIx2cB/yDHSfRQtOQ/UUZUH8Q2FqjefieICPgsh2PTvRZcad T2xg== X-Gm-Message-State: AJIora/jRYfXkQGpzgLZekt9W7Qqer4gbQeW/3x8SAec3Rx9hPtgxRPB s5Oh0HN9s5AW+x01JDb9OqKNCXTrPauVUPb0 X-Received: by 2002:a17:902:f543:b0:16a:54c6:78c0 with SMTP id h3-20020a170902f54300b0016a54c678c0mr39498075plf.22.1657018814491; Tue, 05 Jul 2022 04:00:14 -0700 (PDT) Received: from stoup.. ([122.255.60.245]) by smtp.gmail.com with ESMTPSA id d18-20020a170903231200b0016bf7981d0bsm508454plh.86.2022.07.05.04.00.12 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 05 Jul 2022 04:00:13 -0700 (PDT) From: Richard Henderson To: qemu-devel@nongnu.org Cc: Song Gao , =?utf-8?q?Alex_Benn=C3=A9e?= Subject: [PULL 4/6] tcg/tci: Remove CONFIG_DEBUG_TCG_INTERPRETER Date: Tue, 5 Jul 2022 16:29:55 +0530 Message-Id: <20220705105957.1144514-6-richard.henderson@linaro.org> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20220705105957.1144514-1-richard.henderson@linaro.org> References: <20220705105957.1144514-1-richard.henderson@linaro.org> MIME-Version: 1.0 Received-SPF: pass client-ip=2607:f8b0:4864:20::629; envelope-from=richard.henderson@linaro.org; helo=mail-pl1-x629.google.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.29 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" There is nothing in this environment variable that cannot be done better with -d flags. There is nothing special about TCI that warrants this hack. Moreover, it does not compile -- remove it. Reported-by: Song Gao Reviewed-by: Song Gao Reviewed-by: Alex Bennée Signed-off-by: Richard Henderson --- tcg/tci/tcg-target.h | 5 ----- tcg/tci/tcg-target.c.inc | 7 ------- 2 files changed, 12 deletions(-) diff --git a/tcg/tci/tcg-target.h b/tcg/tci/tcg-target.h index 033e613f24..ceb36c4f7a 100644 --- a/tcg/tci/tcg-target.h +++ b/tcg/tci/tcg-target.h @@ -53,11 +53,6 @@ # error Unknown pointer size for tci target #endif -#ifdef CONFIG_DEBUG_TCG -/* Enable debug output. */ -#define CONFIG_DEBUG_TCG_INTERPRETER -#endif - /* Optional instructions. */ #define TCG_TARGET_HAS_bswap16_i32 1 diff --git a/tcg/tci/tcg-target.c.inc b/tcg/tci/tcg-target.c.inc index 98337c567a..f3d7441e06 100644 --- a/tcg/tci/tcg-target.c.inc +++ b/tcg/tci/tcg-target.c.inc @@ -823,13 +823,6 @@ static void tcg_out_nop_fill(tcg_insn_unit *p, int count) static void tcg_target_init(TCGContext *s) { -#if defined(CONFIG_DEBUG_TCG_INTERPRETER) - const char *envval = getenv("DEBUG_TCG"); - if (envval) { - qemu_set_log(strtol(envval, NULL, 0)); - } -#endif - /* The current code uses uint8_t for tcg operations. */ tcg_debug_assert(tcg_op_defs_max <= UINT8_MAX);