From patchwork Sat Feb 25 08:59: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: 656439 Delivered-To: patch@linaro.org Received: by 2002:adf:a3c6:0:0:0:0:0 with SMTP id m6csp1351488wrb; Sat, 25 Feb 2023 01:01:05 -0800 (PST) X-Google-Smtp-Source: AK7set98wSUtg7aK8PIa9EN6nh3rIEnVlA/aREPsezP+lN5G1hk34ID/aGiLdb74HurHT9xeWzgl X-Received: by 2002:a05:622a:452:b0:3b6:36e1:ed42 with SMTP id o18-20020a05622a045200b003b636e1ed42mr17680212qtx.9.1677315665553; Sat, 25 Feb 2023 01:01:05 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1677315665; cv=none; d=google.com; s=arc-20160816; b=OxFJ8cP07eIhkFme8PZOjiPcn1ixPelxZDvoR2BGufurRqRmaAMtTHHiZGB+KnVxhr G953JKscfKY+W+YmEG9UTnNeUrWKQ/xEswTTj8LHekalf104Ujbo2ZHgz0BzuPs5DmU+ R0vaWLw6ieN6xB3QpR5xnXgoaTGswM1gJEMPbMIQMu6gZWwO10WzMYX+u72sMWv2v38d pz+NxXlkXbAL4j7SOkJ33Dt10H2VUkWf0YGgxRIdpG/2QobFPgFgnsENcG2MMYEVWbiQ ULo3hS4zIvugNCP+MviIw0ui+CYELw/KmYEt8duTXTKySCONt4CUECYBTPcJlpDPCI3Q L/BA== 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=U37MfZRsccuxO2x1TeW8Ue6D8ljIsTDQGVTfdW9tHIbVzxcHNciQBtTcTLzDDG+SaQ xnhY8qopid4gzC2NagRz0j0Q91wlrbwSzV3lPqv1L5pLcogeNkQe8C/+zSfcCrzEP23D cjPz3su9tNouJe89QNlCjKSyo97dBnaoSnPezoYZGDHgoj9JAI8+i55f6SHR9s5SmK/4 ggbHpT3kdg+AQiHnppzuGiHStiUyVJfUgzLQ9wOK5vn1JktI1n2ohDes+fhSNvSPvE9b Ei3cHU569/1QITrw2vzqv+UMMbiRPCSyAIMvKr6Nu4AHlMDq77HFWK7X0j7KR4ssNAOb rhyQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=xmDpNF1p; 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 2-20020ac85942000000b003b637d3f3e5si1618254qtz.402.2023.02.25.01.01.05 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Sat, 25 Feb 2023 01:01:05 -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=xmDpNF1p; 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 1pVqQJ-0002Cn-BC; Sat, 25 Feb 2023 04:00:55 -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 1pVqPv-00010b-B7 for qemu-devel@nongnu.org; Sat, 25 Feb 2023 04:00:36 -0500 Received: from mail-pj1-x102c.google.com ([2607:f8b0:4864:20::102c]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1pVqPs-00058l-SD for qemu-devel@nongnu.org; Sat, 25 Feb 2023 04:00:30 -0500 Received: by mail-pj1-x102c.google.com with SMTP id m3-20020a17090ade0300b00229eec90a7fso8140316pjv.0 for ; Sat, 25 Feb 2023 01:00: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=18JmFlWEdnV+s8Kjewsq0ZcZnDUj7UiObvsTbLqqvwo=; b=xmDpNF1p2UWxS3Dsc0HDzIqBz0FvPxm/F6Y0YYx/Y5w19T3kKsC0iIf2PvLvZjA9He eGz2xTSLDwLLz+9OX/6BcVWPVuXaICd0PS4Ap0Z2dI1Dfdw+qXlenGW+R+Eq2KuXU2Zo 9PE8QdQIv+V6HKVrkv7LGw0cXSdwvgsqZptArSdYKPWToLhfkgnk0uCi9xodwIgJ0hb1 jNCt4wGhbJJJ91SbPaHkckjt0EgcyXUORZGG+Qd3kAQhLlxFKHDTNrJqD2kzF9UO0DJ7 BoDjWGOl6GqEtvJX/7cJb+x6w4bLjO/z6W15zloVdPupJkc6j93dWucqtleuIkK67kJJ 3o5g== 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=ttxZaISXnuPu8C5xcM6qbdIbhHGibD81wffMWGmTkZLLiNu79RlRAysOdKHMUxL6fr 4Ac2eUjK+VmxNqCMCez2xqsH/uAsR6LjE2d7AuLS/U68U30ZYLekBP8bC+DumpK/a97U 4rDmmcX1d2YTuAMVtgpz5Dd/4OOW0MRgd/V71eTXwhXsO698u0QbnBl2DHi2KQSrBRRr MlNU8NgYmToLNh+nKBoNJ1FtiVGe5bD7BLmTF/ayVWQVmXmC9peGhdlvDeaK7GTmsKas 4IhA+pd9SY9jIM23573hxQoDkTsIPij+oCLpmCDaXr1rAzs4mRfZEwUu/crl6dPZqnsz 2W5A== X-Gm-Message-State: AO0yUKX+D48i90lD0BcRX1qEAK2Da+u8fJX9JmmQZwYVQXal7ji/FyDz 4NMdMDBt+Et+Xh7JGDzVKbRaYEgTzYyaZOh3+Pk= X-Received: by 2002:a05:6a20:6a21:b0:cc:dd86:ca27 with SMTP id p33-20020a056a206a2100b000ccdd86ca27mr572048pzk.17.1677315627477; Sat, 25 Feb 2023 01:00: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 s17-20020a639251000000b00502ecb91940sm715546pgn.55.2023.02.25.01.00.26 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 25 Feb 2023 01:00:27 -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 26/30] target/ppc: Don't use tcg_temp_local_new Date: Fri, 24 Feb 2023 22:59:41 -1000 Message-Id: <20230225085945.1798188-27-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::102c; envelope-from=richard.henderson@linaro.org; helo=mail-pj1-x102c.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();