From patchwork Wed Feb 22 23:27:10 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Richard Henderson X-Patchwork-Id: 655709 Delivered-To: patch@linaro.org Received: by 2002:adf:a3c6:0:0:0:0:0 with SMTP id m6csp36321wrb; Wed, 22 Feb 2023 15:29:22 -0800 (PST) X-Google-Smtp-Source: AK7set8zhDbi7aJS7J7hf2R8xfzoHTQA2glycHl2d/rcMmjAqXAxFH1DB9MHGuW7ZaXHXhE7CD0X X-Received: by 2002:a05:6214:528d:b0:56b:edfa:57cc with SMTP id kj13-20020a056214528d00b0056bedfa57ccmr18341318qvb.41.1677108562241; Wed, 22 Feb 2023 15:29:22 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1677108562; cv=none; d=google.com; s=arc-20160816; b=tUE/VioN4I/rWy0KbE77Yj2Vq78ZEkUWzlq+i86nvXZ3c0KG5SEQ57Bvswl2FPsEpR ZXAnBS7o5NpaP97+oLxVztAMZ1qB4X9rNyP5gxNLhoqElcbkJ8NY/mDPd2TRbNrmV2XR AjMA+9yVhORRnwy2G6d7yE3zW3/SnaruC0jhtkaH/xy/8dVbGVRHnpSRAs+un3TS91Hx K8OyNOlnyoPixxTidyrYyy9L5CZYTSrulWQ4MNbSdvQeTz1NHfrUOLjxUHZ7NUn8fi1e 2P8w5kbu7yy8sz0r8TBfFvaEfu+y5mq2QG4VpmBSZuEB02yGyfOFQVHTL68uGy4E3jFC XTaA== 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=rHr7UNHOs0Whmfcc8X0O0TPtj9PQeXxgcyYlBmXJrcWIQukjK2Llv4bSAgbMqnKezp mTpWi10bG05czbVoZyX0DtTb/ZwT5LDYeBSTZmxaUnQAb9m1jddBNkfBSbEnWBTvelDE A2GUWy7eCdLaDPc1Qob8cWNkWnsSbkrmc83PubNfi55a2DsCByBsBJ6yiE+JQ8zHVDTP LiqdMTA71INaig7qyonf9GgR1zQfTOJQHLAfHFcosQuK+zE178FsNg/hReieAdt8i1RZ kBDeEWfroW++2PUKxdGdv0DdfGk1HZkj2qvW5ch1hQoXHV9eip+k3X1QMNtNLU7z9pnZ shhQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=xW0QGwcY; 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 s11-20020a05620a0bcb00b007287b6f56e6si4993097qki.576.2023.02.22.15.29.22 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Wed, 22 Feb 2023 15:29:22 -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=xW0QGwcY; 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 1pUyWn-0000qU-LO; Wed, 22 Feb 2023 18:28:01 -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 1pUyWf-0000W8-B2 for qemu-devel@nongnu.org; Wed, 22 Feb 2023 18:27:53 -0500 Received: from mail-pl1-x62a.google.com ([2607:f8b0:4864:20::62a]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1pUyWd-0005I3-Jl for qemu-devel@nongnu.org; Wed, 22 Feb 2023 18:27:53 -0500 Received: by mail-pl1-x62a.google.com with SMTP id i3so342564plg.6 for ; Wed, 22 Feb 2023 15:27:51 -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=xW0QGwcYCs1CUZ1MEbEHxN3yctmL3q6GWB9T2B5wRmIoozECjl+FxZ1tsjYi1KWIgF D+srZw0z6dX1mxNZo4u/3/OzlKkRSBwfd1k6Rv3d1iKTKSC0otnB1JVcwpHzW5GY2Com RduAW5Ev+/+v6VMTum6BB8tHxMmt/FsXhWWPJu77Q84KnaJoKXzFCWHw31jua8CWj4jI 8E8YmcJpOeiHkiujkdgRTx8fHwuWLwtIo3jCoxfPSsjXMm06SZ9xHg5sjghaVsFdfRyW i0AOfeQ5A561yo77ZKf8Ek38LnlMXevLKjGUFaFwooq1oGEuhfnTs1sxtSq0JqRgnI0A 42Gg== 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=uf0xgD4lZ7nM79UOFOi6seayNZnevoB+Vkf5Bkuy7hVlP+cWvmMD3oCImBqvN5kU8i wEVc7IUFSvWowqzlCcZeUDtc+wn74Tn5LXx/FK8SiVa5Sgf2uOJ4zLN9AxLxncNEWbHQ 6RjzKKvcPEi92Kx51J3HHbP7b0p67mrP7/3XxBKnZvdQ0H1pU1xV1UqgDEWaUFLnG0+D NQ95ZgG9JWjV8tYJVIrpo/F3WIWP/ziDfVYZymCDqX5nif0wc9AR35N0xNEtJi0s4M82 mB6TtD384heDnx5vKtN5DBFL4jdSN62knrHxCxHdsK/ADKZRxxd13b+KHtcBq7w2bNyA qIyg== X-Gm-Message-State: AO0yUKWJHGctxaOyOFKeu+GQkQK9NtGylco7xCMAEz2QQWWCI/Fa8jJ2 Ypjs9AjekxrCER2PXTWijJHASAPMMwr4GftlA3A= X-Received: by 2002:a17:90b:38c2:b0:234:9229:535e with SMTP id nn2-20020a17090b38c200b002349229535emr10544092pjb.23.1677108470843; Wed, 22 Feb 2023 15:27:50 -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 s16-20020a17090ad49000b00234e6d2de3dsm5008918pju.11.2023.02.22.15.27.49 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 22 Feb 2023 15:27:50 -0800 (PST) From: Richard Henderson To: qemu-devel@nongnu.org Cc: =?utf-8?q?Philippe_Mathieu-Daud=C3=A9?= Subject: [PATCH v2 23/28] target/ppc: Don't use tcg_temp_local_new Date: Wed, 22 Feb 2023 13:27:10 -1000 Message-Id: <20230222232715.15034-24-richard.henderson@linaro.org> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20230222232715.15034-1-richard.henderson@linaro.org> References: <20230222232715.15034-1-richard.henderson@linaro.org> MIME-Version: 1.0 Received-SPF: pass client-ip=2607:f8b0:4864:20::62a; envelope-from=richard.henderson@linaro.org; helo=mail-pl1-x62a.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();