From patchwork Wed Mar 1 02:56:39 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Richard Henderson X-Patchwork-Id: 657785 Delivered-To: patch@linaro.org Received: by 2002:adf:a3c6:0:0:0:0:0 with SMTP id m6csp3271938wrb; Tue, 28 Feb 2023 19:05:10 -0800 (PST) X-Google-Smtp-Source: AK7set8G3UiFLoUbQtdibkg1vVSg04IgLfVDq4f6yxUObsqTT14sCMtbsY18DtD72O2UdoRxHrhf X-Received: by 2002:ad4:5d61:0:b0:56f:d8:dbb4 with SMTP id fn1-20020ad45d61000000b0056f00d8dbb4mr10392052qvb.2.1677639910561; Tue, 28 Feb 2023 19:05:10 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1677639910; cv=none; d=google.com; s=arc-20160816; b=ZRlEdV2XsjYkv1xExqcvwZSsdOR9Wgmh9JHbM2yPqkYGUYIMVQW6iAtCaPWtNk8E7X AG2MyuPjXOTlaBYhcrSxwlFKfwLxFIEvw2jjvU1mmbyC/KzYs9WfWMi2g41EXil4M4eq biP3eEcD8sFVZoeUHy6pgCL2v8Hdhz2BQA9YrMpBPedCV0oa+3Nt5W3qBs2ka5MGbWvS 74IP15XDF4j9vawPvmDmryHapbWEWblSo5+63CRokSWn0GYz18C5nknHi5BS9ftD6FXc 4REEPViQC+vmNteoMlhZXztBnt1OjgSVg1Zgn7QrBCt/Bc4zw9kwxITfJqcVIp85ANey 842g== 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=18JmFlWEdnV+s8Kjewsq0ZcZnDUj7UiObvsTbLqqvwo=; b=ukDquZzLWUz4Qa9Dm43kp/TOTaw9g1vqOwBgkj80y30rYa7fCMetE2YQBMTh+PiUh6 OwWM55g8l7ETK1G1Z11FB3CfkUJA/qQOumYAk2/YbT5MvPC8Y14Pf8wOCGjWVghkWU0/ tt5FNaa/ZTH+EN6HP5oUBlCL5suUeFZHGY8vpwZEMOtzwuaE7uo/2f5OmqQjb1uZcxv+ H8l4/S3pJMMvF+I9f6lC9pZbC8aDTU/XrCFneBF8cQM6niwoRXcWUw24ANBz9MBKNU9H NyakcK3CkxAYuLSD1qXdwdKQX7e6CUOtkeWbBrXHo3GlnTsA5fhcO49jmblDYFBcO9cG WDtg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=jhKIk0lm; 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 h20-20020a0cf414000000b0057115385fd0si9692161qvl.373.2023.02.28.19.05.10 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Tue, 28 Feb 2023 19:05:10 -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=jhKIk0lm; 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 1pXCig-0003Me-6w; Tue, 28 Feb 2023 22:01:30 -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 1pXCic-0002my-Tm for qemu-devel@nongnu.org; Tue, 28 Feb 2023 22:01:27 -0500 Received: from mail-pj1-x1029.google.com ([2607:f8b0:4864:20::1029]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1pXCia-0004G4-P4 for qemu-devel@nongnu.org; Tue, 28 Feb 2023 22:01:26 -0500 Received: by mail-pj1-x1029.google.com with SMTP id h11-20020a17090a2ecb00b00237c740335cso10555303pjs.3 for ; Tue, 28 Feb 2023 19:01:24 -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=18JmFlWEdnV+s8Kjewsq0ZcZnDUj7UiObvsTbLqqvwo=; b=jhKIk0lmPuDjiMnybMdw7u8WHhtltPQgBt6tLLdtg8nu/1ulQH3xKuUK0JVeiH0oPG BxfMyewbWpoaCGIH7NYAujU+ceTOuLDRFVOaPIkbxaPxIKA6WELzViFvWILIqmB4NvRR K8/WjFAia0gdMp1VyFaiN6ovVO8i56Kp3d7Z7rZks5xU5DwEbI+RSzYoDtdJX2hYDkTG nQ4j4ccwyANGiqdENoITHZiguG0/7Qx3UtvPDXd2R5E8EMAEjgQXSYJFrVR6Ol4eNlCx NcHYVnrxOkbW1wECRsERis2brlV12WlQM5veYExkel1ym3uIZ7GA3ktkE9X8FpOwKyVh IM4w== 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=18JmFlWEdnV+s8Kjewsq0ZcZnDUj7UiObvsTbLqqvwo=; b=dIGTADIXC229UUckCGCMB8Qecp1nHyx14gSoOgdCc2MNH3v91V1d7hYL3Wrob7aa2j 2ugv6xaYrZsY6XQsT66+3igBMB9ymIHpnIpLebiNasmCYYHa0b0Oqkec6sRo0Zxgmev4 KSwdH9tThA0CnLwvG9Q4gECGso5OyWWuAV1mRBsnX3kBNjkMBxk5+6IYdfZaq7ICI2UQ cAtNWy3iqsQHTHW75UD7c9p9XpeIZNp/Fc9x/8exD2jKfzFzU/m8G3+zMf0x4FfR6VP5 bN4us6/OfcqOlF4949Vy7nwEG3ZRKwq7gWs2R+qmZJs9IV111/JGquv0WytY4mKFIJUt JwAA== X-Gm-Message-State: AO0yUKW2QMEZxDVotBNNP6WPL/zRQgJAHgAWFzVro6G1r434ZmtByMGb gfThrb9UZ/3g1gZ1/g03StGNqduOKv4DkCE8Oj8= X-Received: by 2002:a17:903:284d:b0:19c:df6e:6ada with SMTP id kq13-20020a170903284d00b0019cdf6e6adamr4192642plb.25.1677639683952; Tue, 28 Feb 2023 19:01:23 -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.22 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 28 Feb 2023 19:01:23 -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 58/62] target/ppc: Don't use tcg_temp_local_new Date: Tue, 28 Feb 2023 16:56:39 -1000 Message-Id: <20230301025643.1227244-59-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::1029; envelope-from=richard.henderson@linaro.org; helo=mail-pj1-x1029.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/ppc/translate.c | 6 +++--- target/ppc/translate/spe-impl.c.inc | 8 ++++---- target/ppc/translate/vmx-impl.c.inc | 4 ++-- 3 files changed, 9 insertions(+), 9 deletions(-) diff --git a/target/ppc/translate.c b/target/ppc/translate.c index 5fe6aa641e..2956021e89 100644 --- a/target/ppc/translate.c +++ b/target/ppc/translate.c @@ -4415,7 +4415,7 @@ static void gen_bcond(DisasContext *ctx, int type) TCGv target; if (type == BCOND_LR || type == BCOND_CTR || type == BCOND_TAR) { - target = tcg_temp_local_new(); + target = tcg_temp_new(); if (type == BCOND_CTR) { tcg_gen_mov_tl(target, cpu_ctr); } else if (type == BCOND_TAR) { @@ -5594,8 +5594,8 @@ static inline void gen_405_mulladd_insn(DisasContext *ctx, int opc2, int opc3, { TCGv t0, t1; - t0 = tcg_temp_local_new(); - t1 = tcg_temp_local_new(); + t0 = tcg_temp_new(); + t1 = tcg_temp_new(); switch (opc3 & 0x0D) { case 0x05: diff --git a/target/ppc/translate/spe-impl.c.inc b/target/ppc/translate/spe-impl.c.inc index 2e6e799a25..bd8963db2b 100644 --- a/target/ppc/translate/spe-impl.c.inc +++ b/target/ppc/translate/spe-impl.c.inc @@ -168,7 +168,7 @@ static inline void gen_op_evsrwu(TCGv_i32 ret, TCGv_i32 arg1, TCGv_i32 arg2) { TCGLabel *l1 = gen_new_label(); TCGLabel *l2 = gen_new_label(); - TCGv_i32 t0 = tcg_temp_local_new_i32(); + TCGv_i32 t0 = tcg_temp_new_i32(); /* No error here: 6 bits are used */ tcg_gen_andi_i32(t0, arg2, 0x3F); @@ -185,7 +185,7 @@ static inline void gen_op_evsrws(TCGv_i32 ret, TCGv_i32 arg1, TCGv_i32 arg2) { TCGLabel *l1 = gen_new_label(); TCGLabel *l2 = gen_new_label(); - TCGv_i32 t0 = tcg_temp_local_new_i32(); + TCGv_i32 t0 = tcg_temp_new_i32(); /* No error here: 6 bits are used */ tcg_gen_andi_i32(t0, arg2, 0x3F); @@ -202,7 +202,7 @@ static inline void gen_op_evslw(TCGv_i32 ret, TCGv_i32 arg1, TCGv_i32 arg2) { TCGLabel *l1 = gen_new_label(); TCGLabel *l2 = gen_new_label(); - TCGv_i32 t0 = tcg_temp_local_new_i32(); + TCGv_i32 t0 = tcg_temp_new_i32(); /* No error here: 6 bits are used */ tcg_gen_andi_i32(t0, arg2, 0x3F); @@ -378,7 +378,7 @@ static inline void gen_evsel(DisasContext *ctx) TCGLabel *l2 = gen_new_label(); TCGLabel *l3 = gen_new_label(); TCGLabel *l4 = gen_new_label(); - TCGv_i32 t0 = tcg_temp_local_new_i32(); + TCGv_i32 t0 = tcg_temp_new_i32(); tcg_gen_andi_i32(t0, cpu_crf[ctx->opcode & 0x07], 1 << 3); tcg_gen_brcondi_i32(TCG_COND_EQ, t0, 0, l1); diff --git a/target/ppc/translate/vmx-impl.c.inc b/target/ppc/translate/vmx-impl.c.inc index 7741f2eb49..2dd17ab106 100644 --- a/target/ppc/translate/vmx-impl.c.inc +++ b/target/ppc/translate/vmx-impl.c.inc @@ -1508,8 +1508,8 @@ static bool do_vcmpq(DisasContext *ctx, arg_VX_bf *a, bool sign) REQUIRE_INSNS_FLAGS2(ctx, ISA310); REQUIRE_VECTOR(ctx); - vra = tcg_temp_local_new_i64(); - vrb = tcg_temp_local_new_i64(); + vra = tcg_temp_new_i64(); + vrb = tcg_temp_new_i64(); gt = gen_new_label(); lt = gen_new_label(); done = gen_new_label();