Message ID | 20230130205935.1157347-27-richard.henderson@linaro.org |
---|---|
State | Superseded |
Headers | show
Delivered-To: patch@linaro.org Received: by 2002:a17:522:d8c:b0:4be:c3dc:14d8 with SMTP id d12csp1376701pva; Mon, 30 Jan 2023 13:04:39 -0800 (PST) X-Google-Smtp-Source: AK7set8RCRvCDNPWvBdyxHAlor2V/XcocqYwQXYWdy0XHUHPg6mzxZbtTV84ZS8OV7oAJ9RunGep X-Received: by 2002:ac8:7f89:0:b0:3b8:59de:77cf with SMTP id z9-20020ac87f89000000b003b859de77cfmr14023805qtj.62.1675112679393; Mon, 30 Jan 2023 13:04:39 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1675112679; cv=none; d=google.com; s=arc-20160816; b=tmnA2J/vV+gs5YvCuvTWII1mqBrJr6vKVBX4L/lWnRfbybEdlS6tPWSjQu9D9UDYu3 Sr5g+hkmyBI9kVGdSGJJop1uxSAKEF7iD1CZIcBFnh2B0HbfZ8eP1LeGvctXXHOlgBiE 9baKubM9CvXafs89UdexdB0Mx2bpnJMYa47YWUo4g9Ied3TWGasUfH4X3RRB8q1E6K2v VE73ufi3XPxdhc10Z/bRXvRKIkZEABIn4hSQHXmc8DAXHGgUv6zpjAMaGIj+FTFVE498 vrEx7tqWrxm85R98vCqDHjit4AcEw1q+uVvuLj2UGf3Mb/vYsxQAgP8Eaot307ejVjX9 zghQ== 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=TYlbBIJa3L4VxKtWFLrCymT5XGJJmqWmz+eEQQNGFFc=; b=LeTa9ROeTuNdAtmUlW9Gjo9D37zpr3vAVyycP0svADycTPI5Nr3bv23emSrOkOZ3oe zBNKstfxTbGtwqWAqJdlwSOwBi2hRI3U/WVO08DuNQ8+aPvJX8JgzyVIF4UxFq0LkJCS stYVo1ubl/FBeeiqHT8h3OV/f/sZNIlVHKwDRqa/9Rg2H8r1LZxc5OP+Kn39bTcvO7qR TU9FyXpLUeQ/VUTv1oeg41qJoljT2/c6bhqVq92Oc62BxStC55Eo5X6UxZYM4TNNXDJ5 t+QQQEWZrk38+AHmxHegl6dYou9g2Sy2QWj8hU4rTHnynyYD8IB5xPL2qmyQDv0b1kFl LKcg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=PiEMRmhm; 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: <qemu-devel-bounces+patch=linaro.org@nongnu.org> Received: from lists.gnu.org (lists.gnu.org. [209.51.188.17]) by mx.google.com with ESMTPS id y4-20020a05622a004400b003b85473ae55si3317974qtw.142.2023.01.30.13.04.39 for <patch@linaro.org> (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Mon, 30 Jan 2023 13:04:39 -0800 (PST) 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=PiEMRmhm; 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] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from <qemu-devel-bounces@nongnu.org>) id 1pMbGO-0000Pz-38; Mon, 30 Jan 2023 16:00:28 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from <richard.henderson@linaro.org>) id 1pMbGJ-0000E4-OE for qemu-devel@nongnu.org; Mon, 30 Jan 2023 16:00:24 -0500 Received: from mail-pf1-x42d.google.com ([2607:f8b0:4864:20::42d]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from <richard.henderson@linaro.org>) id 1pMbGI-0005XE-3f for qemu-devel@nongnu.org; Mon, 30 Jan 2023 16:00:23 -0500 Received: by mail-pf1-x42d.google.com with SMTP id cr11so7081721pfb.1 for <qemu-devel@nongnu.org>; Mon, 30 Jan 2023 13:00:21 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=TYlbBIJa3L4VxKtWFLrCymT5XGJJmqWmz+eEQQNGFFc=; b=PiEMRmhmmBua0+T345WVGtB1rACpYO/hgL5PqbXmrI1Bc2cDNBDK9uOA4Ttd1URshb GBjFTv3lCZ6Z9V9K2Og2ChXVhKTvlyODd0Eh7jgUiAeHUFrf5GxrkAHlotAjbbm6TtJD w6CDhv4tjuD2MhNlcJjkWZGELUfsjaSwXl84fZbtrZkAr+GC7hcEK2ackUFwHUx9mW0O 8K+p62uOORXpdhVQybI0hU6zQFvSrD+/mDV6bgHI/qwA/9dQNR4ab3PCsVJXvumej7Ic 6gv/PJ8ZRRl4feqodEUETTlXIeCYl2kRXNnPd1ZCuPPTQrMieQlz/MBC1+BvetJCfmWF WxnQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=TYlbBIJa3L4VxKtWFLrCymT5XGJJmqWmz+eEQQNGFFc=; b=rocW5OH+Fq4wdkhdCiLS9WwPDHdC0bE06zBDg9CX/fdNbCPq8TLA85HI+zxi512ERP 7oWp660F46wkqugnuwcWYOKAoM0lW/O/oaDs1Ad+oTbvK/TD9kszDoC7G24FSP9vHub3 RttCTSiAH5cxs49GM3ITwVY9FoE0aaNT5UCW7D5o+qKJosEOXuvw79UwPNh83OyAu2b1 ifBJV/KJdROtJPXCi79+qgmUneS3fFYIQkxwwjJSA45STIkfljAJwAA/PO43ReztPJba fPBM5Mnh+5hd4M54vEmsQiKzf8g74LmPdAxQnX2p6vun04j8xtEaeqZNVRYEQT45i5tf IYuQ== X-Gm-Message-State: AO0yUKXSZWNAqvQM1YhG9bsnTVxjApQgw4begMO5Bst240bn15PhW7N9 +DLN9R52jkpkj/gFVK5eLYMuf/k4JZXp83Ks X-Received: by 2002:a62:5484:0:b0:593:bc80:2d2d with SMTP id i126-20020a625484000000b00593bc802d2dmr5518222pfb.17.1675112420724; Mon, 30 Jan 2023 13:00:20 -0800 (PST) Received: from stoup.. (rrcs-173-197-98-118.west.biz.rr.com. [173.197.98.118]) by smtp.gmail.com with ESMTPSA id x10-20020aa79a4a000000b00593eb3a5e44sm102933pfj.37.2023.01.30.13.00.19 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 30 Jan 2023 13:00:20 -0800 (PST) From: Richard Henderson <richard.henderson@linaro.org> To: qemu-devel@nongnu.org Cc: peter.maydell@linaro.org, cota@braap.org Subject: [PATCH 25/27] exec/gen-icount: Don't use tcg_temp_local_new_i32 Date: Mon, 30 Jan 2023 10:59:33 -1000 Message-Id: <20230130205935.1157347-27-richard.henderson@linaro.org> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20230130205935.1157347-1-richard.henderson@linaro.org> References: <20230130205935.1157347-1-richard.henderson@linaro.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Received-SPF: pass client-ip=2607:f8b0:4864:20::42d; envelope-from=richard.henderson@linaro.org; helo=mail-pf1-x42d.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 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: <qemu-devel.nongnu.org> List-Unsubscribe: <https://lists.nongnu.org/mailman/options/qemu-devel>, <mailto:qemu-devel-request@nongnu.org?subject=unsubscribe> List-Archive: <https://lists.nongnu.org/archive/html/qemu-devel> List-Post: <mailto:qemu-devel@nongnu.org> List-Help: <mailto:qemu-devel-request@nongnu.org?subject=help> List-Subscribe: <https://lists.nongnu.org/mailman/listinfo/qemu-devel>, <mailto:qemu-devel-request@nongnu.org?subject=subscribe> Errors-To: qemu-devel-bounces+patch=linaro.org@nongnu.org Sender: qemu-devel-bounces+patch=linaro.org@nongnu.org |
Series |
tcg: Simplify temporary usage
|
expand
|
On 30/1/23 21:59, Richard Henderson wrote: > Since tcg_temp_new_i32 is now identical, use that. > > Signed-off-by: Richard Henderson <richard.henderson@linaro.org> > --- > include/exec/gen-icount.h | 8 +------- > 1 file changed, 1 insertion(+), 7 deletions(-) Reviewed-by: Philippe Mathieu-Daudé <philmd@linaro.org>
diff --git a/include/exec/gen-icount.h b/include/exec/gen-icount.h index c57204ddad..21a1bff8b7 100644 --- a/include/exec/gen-icount.h +++ b/include/exec/gen-icount.h @@ -19,13 +19,7 @@ static inline void gen_io_start(void) static inline void gen_tb_start(const TranslationBlock *tb) { - TCGv_i32 count; - - if (tb_cflags(tb) & CF_USE_ICOUNT) { - count = tcg_temp_local_new_i32(); - } else { - count = tcg_temp_new_i32(); - } + TCGv_i32 count = tcg_temp_new_i32(); tcg_gen_ld_i32(count, cpu_env, offsetof(ArchCPU, neg.icount_decr.u32) -
Since tcg_temp_new_i32 is now identical, use that. Signed-off-by: Richard Henderson <richard.henderson@linaro.org> --- include/exec/gen-icount.h | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-)