From patchwork Sat Feb 25 08:59:43 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Richard Henderson X-Patchwork-Id: 656465 Delivered-To: patch@linaro.org Received: by 2002:adf:a3c6:0:0:0:0:0 with SMTP id m6csp1352751wrb; Sat, 25 Feb 2023 01:04:38 -0800 (PST) X-Google-Smtp-Source: AK7set+0i0PTwjb5Vr1+L38rJjOJNjW13ToBZTEhvtEtDjFWkxeduLzFZwDFWLSwOV9rk7RZK+fN X-Received: by 2002:ac8:7f0e:0:b0:3b6:3508:2a3e with SMTP id f14-20020ac87f0e000000b003b635082a3emr31263375qtk.4.1677315878619; Sat, 25 Feb 2023 01:04:38 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1677315878; cv=none; d=google.com; s=arc-20160816; b=K25oRFbHBORQnar/hm/J7k4GSui3ZJ2c/TqtJyuFkzjZNBRI2Qhi+UFJPY0tfq43p7 517lLBjk2U9FPSzsSGvufqgpOwRj5Jl5Ufofh3MhqNi8pc30CbueeOIubbpHS74kzLCc Me6qe2HzviCpNOem45J6PnBgkMqtwBBa+bEZVvVRek0sg/p60LH+oYQYMmIjX5UN/tcR 7dBRcZ/9o3a4H1/rSWMknXm2IZZC12aQc5XFSeZ3YsLClwqBFaVKV06sHnszjO6w7v83 01pecsh3ZjDnE53BwDo85Ma4ZfZeWmTfTh2AsLG6D9eyTDK6UdXPRdKPSJOwTSbyEL5A vo4w== 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=sFtLskBtXQJv7dvYWKC68zyT6F+160XUCfsOjHVKspM=; b=UpnG3VtHmSIzsTsiUlN0pusAUhe0CwEOHLcjdQy2ngxQHaGiR9GmwxaCuf2Q907H0O aKDOYZ/1mPfWn4WZCO3RtoLoHKzy8QCujZLC2t0S6o09kxjudJySSsaE93xs/o6+F9VE S0u7ZO75/CTlbWxNdt6I6qAuvIls0Mk5cDFNMit2dngpjEGtqdsjjJIp28PhUA2oxdfi QpUArlkOtXCjB3BOh4wS5dII0l8TDw/VOnyux1ln6aMh8Sjjo0hiIpR4obbEnd48y/2u 5Ht0C9qkIJUuvVDmF1uUb5JC9wMOXjPqo+NPw3yI2MMHve0H/iI8E3/9N2tYtsxeQ7FF Yhsw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=GHxfIN2X; 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 n5-20020a05620a294500b0070528bfdf68si1565021qkp.280.2023.02.25.01.04.38 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Sat, 25 Feb 2023 01:04:38 -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=GHxfIN2X; 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 1pVqQH-0001rg-2C; Sat, 25 Feb 2023 04:00:53 -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 1pVqQ1-00015G-6U for qemu-devel@nongnu.org; Sat, 25 Feb 2023 04:00:38 -0500 Received: from mail-pg1-x532.google.com ([2607:f8b0:4864:20::532]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1pVqPw-00059C-5Y for qemu-devel@nongnu.org; Sat, 25 Feb 2023 04:00:34 -0500 Received: by mail-pg1-x532.google.com with SMTP id s18so923452pgq.1 for ; Sat, 25 Feb 2023 01:00:31 -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=sFtLskBtXQJv7dvYWKC68zyT6F+160XUCfsOjHVKspM=; b=GHxfIN2XzM66Cyma7GhKu2ItgTyVdo2O9NhWMBgytelp9RgjjQYQfKMKlu/0Z/um84 /qnWxWhOCBxbkGiWoQvB4Ng4LCydGtNNnJv3MMPQjopUYOEfreF8HEqT0kqbTYQ2M/7b aG+5Ib2aRzwuXJJw/xoZjCkWSZl5H44YgKr+fHCysRkwC4L+Szr/gpdDnZ3hrxS6bGwn B1nUsSYxcM/UpAW6XcSCGW+3V6YIV4t22lIkOkibCnxcTddtTVisnitoLsp2jTF02YR7 wmT2f7D1hX5erEnb39W6l2bcUc8/fLsA8sRfDl3//DQGOCVQHaVNqQrgzKipVLHOCno5 A8yg== 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=sFtLskBtXQJv7dvYWKC68zyT6F+160XUCfsOjHVKspM=; b=wbvk60DYwvrwGlTkuC8zDWsr1K6XNbV/4ZllUmVfMV9ODelfb7Fon2iNRd2kFvgyHl +3hYwnmN8kGjBCBEZ5LVLS8b77/32YoDoCY6gdjdUjXYA9UCcsLsD4ci9aWsapbbuHPI sfmEeqdh2/D++znsQ470qcBZq9B5o2HMk8sbwRtvvKvlYINGbHYbCYA9NjwzdVrX+5Wf KETuDgjwUf/w/peKF92QpvN4GQ5i5zFyij1PAcLDSZ5t2yV7pUp5avvBj3ogcOApUsob jfd5rpnZeYnMdlnpQY1wVboNNmpPpVUnzqJTrrGy+IQnTJviBFURelrlt9VzYUanuc/J djqQ== X-Gm-Message-State: AO0yUKXSVYApl1cmC40MP7OqhxH2LyhO2OeLWkWokP4wTbMsZ2cX46Qq YLHzleyvfIQCOWkrPB+zTJCZT2FQsRcK55geP5M= X-Received: by 2002:a62:17c6:0:b0:5a8:b6cf:1a74 with SMTP id 189-20020a6217c6000000b005a8b6cf1a74mr15616685pfx.18.1677315630652; Sat, 25 Feb 2023 01:00:30 -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 s17-20020a639251000000b00502ecb91940sm715546pgn.55.2023.02.25.01.00.29 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 25 Feb 2023 01:00:30 -0800 (PST) From: Richard Henderson To: qemu-devel@nongnu.org Cc: peter.maydell@linaro.org, =?utf-8?q?Philippe_Mathieu-Daud=C3=A9?= Subject: [PATCH v3 28/30] exec/gen-icount: Don't use tcg_temp_local_new_i32 Date: Fri, 24 Feb 2023 22:59:43 -1000 Message-Id: <20230225085945.1798188-29-richard.henderson@linaro.org> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20230225085945.1798188-1-richard.henderson@linaro.org> References: <20230225085945.1798188-1-richard.henderson@linaro.org> MIME-Version: 1.0 Received-SPF: pass client-ip=2607:f8b0:4864:20::532; envelope-from=richard.henderson@linaro.org; helo=mail-pg1-x532.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 4d8b1f9ae5..733a2fb228 100644 --- a/include/exec/gen-icount.h +++ b/include/exec/gen-icount.h @@ -17,13 +17,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) -