From patchwork Wed Mar 1 02:56:33 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Richard Henderson X-Patchwork-Id: 657793 Delivered-To: patch@linaro.org Received: by 2002:adf:a3c6:0:0:0:0:0 with SMTP id m6csp3272845wrb; Tue, 28 Feb 2023 19:07:56 -0800 (PST) X-Google-Smtp-Source: AK7set83v7WGqB8GNpmgzQpcsU8VOSo8hhZVgpfkqqX6XCSplUV04dBjIFlkcdJWqOWG9b2LcMpC X-Received: by 2002:a05:6214:2a48:b0:56e:9317:eb9a with SMTP id jf8-20020a0562142a4800b0056e9317eb9amr10204230qvb.29.1677640076195; Tue, 28 Feb 2023 19:07:56 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1677640076; cv=none; d=google.com; s=arc-20160816; b=uJ/D8oSSVkVh201eM7DlRkH9Imd0LA9bB8IyiKbFeFUWw8vgGG093pVD7mk+nhYfiJ gX7QMDLKGLgRzf6HGuFd5KCoH/hGF0Gb424h9ZssWtoCk8BRhLUQ0lcbVys+5dYJEvn7 NPeR0flyMxKiRLHzqL3UvGZE9273adFmGpzD0mTNGRG8KFCZoizOiPAw5CtwvlmCZC+H Xzm+88wtttBStzfMo9/lA+7FJ218HnoMUnWcdzyUTwwfsn5zE44mSU+H1Fy5C18KLTCi LH6sLM+bjQwffsgEY/rDVK9ZYb8AMQtvy/skPmWRQa+9FrxRpygCPOf6FTI9UFVVJyTS fI7Q== 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=YhL2WzjGmls46D+quq34ze/ulksmGA+cQwYE9pUognw=; b=Cjlox5AwAVUYp6JKba3F9g4F9N4sKuS8C3/ZqmFLEbf32SyT7MPZ/q9uijhmgpRa0m Vabw8FpYLh72M+jWbVVICm7WtN3Erphp4z2bAnLftw5C4uOKUrWR5GLnpcx+ulp5alv6 OlsK87I2yg3FuTDg85EWFdIkRoiPPh62QOOxAAd5xNimKdbmc99AS4fOjSLPH1fM5vVu VBqMlsOuNK3ENQuMnRivjgAi8n9CXQhP0nf4pLD/SrYfkx3ByV6oDpkzMuN7nWy7vYGV FMTT9Ca0hJrrItppl7F6iOPbcQPpSeHORkW8btK8G2wbqTlemU8oFAIgSlA28bdHIZdQ A3lw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=SdxEVoqk; 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 d67-20020a376846000000b007064c63b4dcsi9039895qkc.391.2023.02.28.19.07.56 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Tue, 28 Feb 2023 19:07:56 -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=SdxEVoqk; 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 1pXCis-0004px-HX; Tue, 28 Feb 2023 22:01:42 -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 1pXCib-0002Y6-E0 for qemu-devel@nongnu.org; Tue, 28 Feb 2023 22:01:25 -0500 Received: from mail-pl1-x62f.google.com ([2607:f8b0:4864:20::62f]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1pXCiR-0004KL-RF for qemu-devel@nongnu.org; Tue, 28 Feb 2023 22:01:17 -0500 Received: by mail-pl1-x62f.google.com with SMTP id n6so11185474plf.5 for ; Tue, 28 Feb 2023 19:01:15 -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=YhL2WzjGmls46D+quq34ze/ulksmGA+cQwYE9pUognw=; b=SdxEVoqkFMV3pZnsIZOLozG9xVsi6PURV8489bppbfijjzvyDNUH3vX3uCisHYpTAY xgFL8WUUQpK4zef/phUDqYmpBtqT6y7jI0QL2Tae+61oYURt0wbm3Ti0G0+xb8Ihyuqx VbtjBkaSCXOjM2RtmiG4QN0/yftf8ZDlHseYrGkzRXw325kadYDbpLGejTo4NYzdbyBg Sx/GZ6FxccphskRCD/ayzrdvcxFzoj7LDNWsUyp2+D+E5BlmPKFVH0nTCUDaRCDgGuXH bC+L3iFDtXEWxuhoQRfr7MNPNxaUWyf9Xu54izaFxQopzCqr/uf0py7Gr2HA0zRD16E7 8P5w== 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=YhL2WzjGmls46D+quq34ze/ulksmGA+cQwYE9pUognw=; b=HgtAcEw7Pk5F+qcnwHdSaG8kZO/LKAgxv5FgkFAE5YY4hbnebVqNqEAECy7Bfbkaqg XvND/zdKln2ytSM+SmKkEYm40xNpAW10XGJNS5AW67rrLFkcWt6wFnmhPWRtRd1yuLbb P7Z0YnhCSq7zEAQGpFhF4tJ9fjKufeMCE08Gly4jIJq0DfIqOwkPy1CDG0ukvzhMGF1Q 7L5Kl9eb3MI203ZW8DOho0pudbJW8PbUkr/JvJmbtq7WxEtplmK4p3laG0p31oLUuKB6 N3puA2XUQhfOFZHdxx16kG91uCxW6GR/2AUKNzA7YIE70cGbLKqt5lOEv3bZgku5xTz3 Btew== X-Gm-Message-State: AO0yUKWavNNBEwcIMBfDzKYN0w7Y1kaLK/RxnNYAsiq7HwtkQEJUoQGU 6DYOtSF1PG42q2T3BwsjUSNNAeowpGuxegJJ1+0= X-Received: by 2002:a17:903:120d:b0:19c:bcb4:cacb with SMTP id l13-20020a170903120d00b0019cbcb4cacbmr5285921plh.56.1677639674431; Tue, 28 Feb 2023 19:01:14 -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.13 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 28 Feb 2023 19:01:13 -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 52/62] target/cris: Don't use tcg_temp_local_new Date: Tue, 28 Feb 2023 16:56:33 -1000 Message-Id: <20230301025643.1227244-53-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::62f; envelope-from=richard.henderson@linaro.org; helo=mail-pl1-x62f.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 is now identical, use that. Reviewed-by: Philippe Mathieu-Daudé Signed-off-by: Richard Henderson --- target/cris/translate.c | 6 +++--- target/cris/translate_v10.c.inc | 10 +++++----- 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/target/cris/translate.c b/target/cris/translate.c index 905d01288e..a959b27373 100644 --- a/target/cris/translate.c +++ b/target/cris/translate.c @@ -1621,7 +1621,7 @@ static int dec_bound_r(CPUCRISState *env, DisasContext *dc) LOG_DIS("bound.%c $r%u, $r%u\n", memsize_char(size), dc->op1, dc->op2); cris_cc_mask(dc, CC_MASK_NZ); - l0 = tcg_temp_local_new(); + l0 = tcg_temp_new(); dec_prep_move_r(dc, dc->op1, dc->op2, size, 0, l0); cris_alu(dc, CC_OP_BOUND, cpu_R[dc->op2], cpu_R[dc->op2], l0, 4); tcg_temp_free(l0); @@ -2404,8 +2404,8 @@ static int dec_bound_m(CPUCRISState *env, DisasContext *dc) dc->op1, dc->postinc ? "+]" : "]", dc->op2); - l[0] = tcg_temp_local_new(); - l[1] = tcg_temp_local_new(); + l[0] = tcg_temp_new(); + l[1] = tcg_temp_new(); insn_len = dec_prep_alu_m(env, dc, 0, memsize, l[0], l[1]); cris_cc_mask(dc, CC_MASK_NZ); cris_alu(dc, CC_OP_BOUND, cpu_R[dc->op2], l[0], l[1], 4); diff --git a/target/cris/translate_v10.c.inc b/target/cris/translate_v10.c.inc index f500e93447..9660f28584 100644 --- a/target/cris/translate_v10.c.inc +++ b/target/cris/translate_v10.c.inc @@ -68,9 +68,9 @@ static void gen_store_v10_conditional(DisasContext *dc, TCGv addr, TCGv val, unsigned int size, int mem_index) { TCGLabel *l1 = gen_new_label(); - TCGv taddr = tcg_temp_local_new(); - TCGv tval = tcg_temp_local_new(); - TCGv t1 = tcg_temp_local_new(); + TCGv taddr = tcg_temp_new(); + TCGv tval = tcg_temp_new(); + TCGv t1 = tcg_temp_new(); dc->postinc = 0; cris_evaluate_flags(dc); @@ -434,7 +434,7 @@ static void dec10_reg_bound(DisasContext *dc, int size) { TCGv t; - t = tcg_temp_local_new(); + t = tcg_temp_new(); t_gen_zext(t, cpu_R[dc->src], size); cris_alu(dc, CC_OP_BOUND, cpu_R[dc->dst], cpu_R[dc->dst], t, 4); tcg_temp_free(t); @@ -935,7 +935,7 @@ static int dec10_ind_bound(CPUCRISState *env, DisasContext *dc, int rd = dc->dst; TCGv t; - t = tcg_temp_local_new(); + t = tcg_temp_new(); insn_len += dec10_prep_move_m(env, dc, 0, size, t); cris_alu(dc, CC_OP_BOUND, cpu_R[dc->dst], cpu_R[rd], t, 4); if (dc->dst == 15) {