From patchwork Wed Mar 1 02:56:41 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Richard Henderson X-Patchwork-Id: 657781 Delivered-To: patch@linaro.org Received: by 2002:adf:a3c6:0:0:0:0:0 with SMTP id m6csp3271581wrb; Tue, 28 Feb 2023 19:04:07 -0800 (PST) X-Google-Smtp-Source: AK7set92dvA+7ScZpx7/RnE+cocgNKSf/4KbFjZU/WPC56WeukuD/vkUGD3rxmmbJH17i7RvZTLn X-Received: by 2002:a05:6214:c6a:b0:56b:f28a:ee2d with SMTP id t10-20020a0562140c6a00b0056bf28aee2dmr29128415qvj.5.1677639846829; Tue, 28 Feb 2023 19:04:06 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1677639846; cv=none; d=google.com; s=arc-20160816; b=Cy7YwlyIhhGdrVzACQKIV9qmqhGZti3DCs3jWBmsFkwO80KSrpF7bt2jfzQEVI/9qM A2ygojnz4KrCGLNIKEZq51TcTxOeUJgiP/RUuX0IQLHGCQ9nQunkpCrDSmXpX5xPnQqP TbGbJAYM5MKfNiuJdLW1NsIZ9LntEz+pdUwU1l4F9VzTOKDwUsmsrzEGEtFdpJLOpGKZ 4TeN63lNACtTa9tFc3vO8FCLGS6YWiUbfkuWWbWPaidqrtBhmPgAuxVHD6amtBRahvs6 QrnnNdFc1IjOjHnCNqyPItYmyKP7Tqms3MuAQjlau7X/BHDrNmblf0Lu+EvZrHGlDav0 bIrg== 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=3K1HyWRkn+UQCp7PAcpWhkAa828mikqSvNlShZv6Mh4=; b=N7Q1RzjVYtZAsskC4Mgmqd0zBd1YK/oZxqXAH2CLjsRtcbrOLe5oyrNVFms/anocoF uT7VrH/D0lGqXtdrUpi+2YjtanOZhqmctkwLYGhDeiDdhmechDA8Ko9A1rR5UcMSPu6q plmg2lEih501JYi5kVtzoUPhzfs936JP3HC3a0I6ViixI/3aMzOaAj6HAkFOht3zqGL1 0vQhNDNBGVxCQfLvjHW/xqL/h6BbQPOB1+uCAYvblvNwo9m27Gqap66yqCLUS9ARQjmc X2mNgqFUdaVHaQ5PsLCpjNMUrt9IYWchmo+Edgyo1Ar2nE7KpBGGK0DViud9q74/C7oO +aEw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=twzr0FRp; 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 p193-20020a3742ca000000b0070922ae66a8si9264410qka.309.2023.02.28.19.04.06 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Tue, 28 Feb 2023 19:04:06 -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=twzr0FRp; 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 ) id 1pXCim-0003py-Nh; Tue, 28 Feb 2023 22:01:36 -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 ) id 1pXCig-0003R4-Cg for qemu-devel@nongnu.org; Tue, 28 Feb 2023 22:01:30 -0500 Received: from mail-pj1-x1034.google.com ([2607:f8b0:4864:20::1034]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1pXCie-0004NG-Jo for qemu-devel@nongnu.org; Tue, 28 Feb 2023 22:01:30 -0500 Received: by mail-pj1-x1034.google.com with SMTP id y2so11906728pjg.3 for ; Tue, 28 Feb 2023 19:01:28 -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=3K1HyWRkn+UQCp7PAcpWhkAa828mikqSvNlShZv6Mh4=; b=twzr0FRppVEX8v9jYuluK+M5Dxuoavg6VO2+Rcj/UvvlI7r3V4YZdx87NpdnnLV5EC nlD+/uUf074+RzWGVno0/SIeLqplZMAeWTgGLrf+bRjxajG1b8pnM0AMxlwqLLH3HIRx Qg4oAoYXmJU69syU/5KTQtvv5OWJ9cSFDcvPrxYDSokdToCtFVPRq6m52uJ8kRE/Lyv0 Fbd95ipfHCFBBwFOAwCs/tke1CDY+CF+4Q9bJhhjISMN24j/ug69YIPemOe82Fb9I5uz Ot7J97rOKB2mW4fccytwH6eLzF+1wvD9E7pdoOQFegAzGEIa2RJKAlWex3kIt1Y9Q81x O7zA== 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=3K1HyWRkn+UQCp7PAcpWhkAa828mikqSvNlShZv6Mh4=; b=VIG0D69eICKlGUApZKiT0l3wEwVF35PsM10cIKxQPMxviiN8zMYNKon04Sn4DS22+3 cu/8uDa2Rw6NnvIhtwCzb17k+20PPFotEK8qTr5wqzIOnwbBK8+1Pw1wTCrFkM/D4wPN +UKIzPA78+Gtj0/yiHtrfWXO9S0ypIgCyPonitM6n5dck9MtYArILB5JD5AQgqfaj57u 8zutLg3Sf357x3vor4QHt9JLTH7oGQeqWZb6mf0gpcg1DanPxQMO4mPV1ymjfqHhoMsy CxC/DeVu4bWCKKgi+Qk/J3RHaep0M9ib+/h+c/4cfHr9lSag6G1Jmd4PKVEJ0B4mj9YX GhLg== X-Gm-Message-State: AO0yUKXHlRgAN00B0gNIj6MHkZYPXCrb3Ps7XvSX1q1s2spyRquxZelX CCJgDedzxM0TKIJBfBB9zEisoP6+K0c8YHjg4BA= X-Received: by 2002:a17:902:d2c6:b0:19d:1dfe:eac8 with SMTP id n6-20020a170902d2c600b0019d1dfeeac8mr8598425plc.26.1677639687035; Tue, 28 Feb 2023 19:01:27 -0800 (PST) Received: from stoup.. (rrcs-173-198-77-218.west.biz.rr.com. [173.198.77.218]) by smtp.gmail.com with ESMTPSA id r11-20020a170902be0b00b0019aca830869sm7181444pls.238.2023.02.28.19.01.25 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 28 Feb 2023 19:01:26 -0800 (PST) From: Richard Henderson To: qemu-devel@nongnu.org Cc: peter.maydell@linaro.org, =?utf-8?q?Philippe_Mathieu-Daud=C3=A9?= Subject: [PULL 60/62] exec/gen-icount: Don't use tcg_temp_local_new_i32 Date: Tue, 28 Feb 2023 16:56:41 -1000 Message-Id: <20230301025643.1227244-61-richard.henderson@linaro.org> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20230301025643.1227244-1-richard.henderson@linaro.org> References: <20230301025643.1227244-1-richard.henderson@linaro.org> MIME-Version: 1.0 Received-SPF: pass client-ip=2607:f8b0:4864:20::1034; envelope-from=richard.henderson@linaro.org; helo=mail-pj1-x1034.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: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: qemu-devel-bounces+patch=linaro.org@nongnu.org Sender: qemu-devel-bounces+patch=linaro.org@nongnu.org Since tcg_temp_new_i32 is now identical, use that. Reviewed-by: Philippe Mathieu-Daudé Signed-off-by: Richard Henderson --- include/exec/gen-icount.h | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/include/exec/gen-icount.h b/include/exec/gen-icount.h index 5b1794188f..aff35d6982 100644 --- a/include/exec/gen-icount.h +++ b/include/exec/gen-icount.h @@ -16,13 +16,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) -