From nobody Thu Dec 26 22:18:01 2024 Delivered-To: importer2@patchew.org Authentication-Results: mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer2=patchew.org@nongnu.org; dmarc=pass(p=none dis=none) header.from=linaro.org ARC-Seal: i=1; a=rsa-sha256; t=1675112610; cv=none; d=zohomail.com; s=zohoarc; b=CM8GJu7Hkaf3n9YVwppXGmlxmpRjbyPTh71HhdY5mveHXCTruF4nvo4QyRGpG6ZS/SX3Pcv8hWG9qimHEq3hjERDvyLl/HOm4pcp0gn1lpDXneUc+2/xENH8TqEjuzNRiqCzQ3vHbTjOgTUyTQbFjmulc2R52u/+c8COmlTAoOo= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1675112610; h=Content-Transfer-Encoding:Cc:Date:From:In-Reply-To:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:References:Sender:Subject:To; bh=k+RB2lzG1WSTf4vy/OZmWeI3pkurVycFuFuWqjGN6Hk=; b=ZdBMl2SEO2DUnt9/ipnGuByq8WcCtRnWEYRfwfhQQDycWm+9LDf0PLyZJj/cJBdp+263+WON1Dd0jWrPeTtL9vpBfvBAnD9zLN+enDTTceLgVbnX7QWi/MdEyltfUcNuKU7p3pYHdE8oezZn6yXnrLro4ycwPl3lXp1K8HBlx48= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer2=patchew.org@nongnu.org; dmarc=pass header.from= (p=none dis=none) Return-Path: Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mx.zohomail.com with SMTPS id 1675112610152133.0874512104865; Mon, 30 Jan 2023 13:03:30 -0800 (PST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1pMbGS-0000Si-9v; Mon, 30 Jan 2023 16:00:32 -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 1pMbGH-0000Ag-Sh for qemu-devel@nongnu.org; Mon, 30 Jan 2023 16:00:21 -0500 Received: from mail-pg1-x52f.google.com ([2607:f8b0:4864:20::52f]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1pMbGG-0005FZ-1H for qemu-devel@nongnu.org; Mon, 30 Jan 2023 16:00:21 -0500 Received: by mail-pg1-x52f.google.com with SMTP id e10so8575304pgc.9 for ; Mon, 30 Jan 2023 13:00:19 -0800 (PST) Received: from stoup.. (rrcs-173-197-98-118.west.biz.rr.com. [173.197.98.118]) by smtp.gmail.com with ESMTPSA id x10-20020aa79a4a000000b00593eb3a5e44sm102933pfj.37.2023.01.30.13.00.17 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 30 Jan 2023 13:00:18 -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=k+RB2lzG1WSTf4vy/OZmWeI3pkurVycFuFuWqjGN6Hk=; b=mipyR8MAE2rwJMt3/pbkOxkTejWJkDZCF2KuY0yhVsc2sLCXIeYLc/m6yhhQDPDfBP 0LDqNB+5JS+WUtJshPdyeO8fTuSuVKTbbdG6XA9Khk4aoqudaUuM53so/vbIB98NBdPW OG2AaVzX1HfLZExXN2gKsAevXY3F7cXoH4L3Ud6mZ4f5C/leWlpPxXORc2+0Y2bIjHeV X8c8wumMNvXjEtk31+FjTdwMsfBwdz6CovC/IQzZLDG8Gal34QkjBDN71HWSuq6rHWIy xC3fnSnVjeFcSfFAZi8fsRkcOV6DgrTGXel4XQI9Q1fl0PYb6sIIxlPAgeMulqaSCsp+ ZxVQ== 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=k+RB2lzG1WSTf4vy/OZmWeI3pkurVycFuFuWqjGN6Hk=; b=CAg/rHid/W6cl8mgXBwvfE4wYXDz4qhu8wSbLFFJyWC2LyWg/tFiCun5I4qwIpRz8m trVf9vqQ4laIlRRygiwvVQ3xlSsjx892e9LK/l5OsQ5Cpq5KVILyNUWH2Xk1mbyEpJTK mw3PJ8m7D4DyWN9vd9KZhILpdMTyM6OeSDeHNUQ3KPpiFN4gxeVwEGQynxeqPYUeD0/J FA69lwKuDIe4A/apccWTMHRpkbDSfgwf6jGjIM++SUWDGscG7e8nbTcGccaY4n6raBO3 f82F5KFTslfXu3E56D2ddEQDyYfxRpUfmEk+yIdLv6dK3OCLT9QuBWFrdE48YRBTtIcy rbtg== X-Gm-Message-State: AO0yUKW2hCJAxq7UdlLZ7wQq6Z/Sm8ZCJbJrtsfNlSRT0HpqOig39KqQ uUsR1bkWNS3/U+uKUjLDaZK+t4Z45dv12YO0 X-Google-Smtp-Source: AK7set9w1Nh1Ykrxz0rgzw0OsrWtz//amQSZaKaH+eycX744PXaLh6CUWe6LJ/AbbgLhhz9woeQ8Sw== X-Received: by 2002:a62:84d8:0:b0:592:613d:ef17 with SMTP id k207-20020a6284d8000000b00592613def17mr10479907pfd.30.1675112419240; Mon, 30 Jan 2023 13:00:19 -0800 (PST) From: Richard Henderson To: qemu-devel@nongnu.org Cc: peter.maydell@linaro.org, cota@braap.org Subject: [PATCH 24/27] target/xtensa: Don't use tcg_temp_local_new_* Date: Mon, 30 Jan 2023 10:59:32 -1000 Message-Id: <20230130205935.1157347-26-richard.henderson@linaro.org> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20230130205935.1157347-1-richard.henderson@linaro.org> References: <20230130205935.1157347-1-richard.henderson@linaro.org> MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Received-SPF: pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; envelope-from=qemu-devel-bounces+importer2=patchew.org@nongnu.org; helo=lists.gnu.org; Received-SPF: pass client-ip=2607:f8b0:4864:20::52f; envelope-from=richard.henderson@linaro.org; helo=mail-pg1-x52f.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+importer2=patchew.org@nongnu.org Sender: qemu-devel-bounces+importer2=patchew.org@nongnu.org X-ZohoMail-DKIM: pass (identity @linaro.org) X-ZM-MESSAGEID: 1675112610995100002 Content-Type: text/plain; charset="utf-8" Since tcg_temp_new_* is now identical, use those. Signed-off-by: Richard Henderson Reviewed-by: Philippe Mathieu-Daud=C3=A9 --- target/xtensa/translate.c | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/target/xtensa/translate.c b/target/xtensa/translate.c index 8d7bf566de..4af0650deb 100644 --- a/target/xtensa/translate.c +++ b/target/xtensa/translate.c @@ -307,7 +307,7 @@ static void gen_right_shift_sar(DisasContext *dc, TCGv_= i32 sa) static void gen_left_shift_sar(DisasContext *dc, TCGv_i32 sa) { if (!dc->sar_m32_allocated) { - dc->sar_m32 =3D tcg_temp_local_new_i32(); + dc->sar_m32 =3D tcg_temp_new_i32(); dc->sar_m32_allocated =3D true; } tcg_gen_andi_i32(dc->sar_m32, sa, 0x1f); @@ -1074,10 +1074,10 @@ static void disas_xtensa_insn(CPUXtensaState *env, = DisasContext *dc) if (i =3D=3D 0 || arg_copy[i].resource !=3D resource) { resource =3D arg_copy[i].resource; if (arg_copy[i].arg->num_bits <=3D 32) { - temp =3D tcg_temp_local_new_i32(); + temp =3D tcg_temp_new_i32(); tcg_gen_mov_i32(temp, arg_copy[i].arg->in); } else if (arg_copy[i].arg->num_bits <=3D 64) { - temp =3D tcg_temp_local_new_i64(); + temp =3D tcg_temp_new_i64(); tcg_gen_mov_i64(temp, arg_copy[i].arg->in); } else { g_assert_not_reached(); @@ -1187,7 +1187,7 @@ static void xtensa_tr_tb_start(DisasContextBase *dcba= se, CPUState *cpu) DisasContext *dc =3D container_of(dcbase, DisasContext, base); =20 if (dc->icount) { - dc->next_icount =3D tcg_temp_local_new_i32(); + dc->next_icount =3D tcg_temp_new_i32(); } } =20 @@ -2273,8 +2273,8 @@ static void gen_check_atomctl(DisasContext *dc, TCGv_= i32 addr) static void translate_s32c1i(DisasContext *dc, const OpcodeArg arg[], const uint32_t par[]) { - TCGv_i32 tmp =3D tcg_temp_local_new_i32(); - TCGv_i32 addr =3D tcg_temp_local_new_i32(); + TCGv_i32 tmp =3D tcg_temp_new_i32(); + TCGv_i32 addr =3D tcg_temp_new_i32(); MemOp mop; =20 tcg_gen_mov_i32(tmp, arg[0].in); @@ -2303,8 +2303,8 @@ static void translate_s32ex(DisasContext *dc, const O= pcodeArg arg[], const uint32_t par[]) { TCGv_i32 prev =3D tcg_temp_new_i32(); - TCGv_i32 addr =3D tcg_temp_local_new_i32(); - TCGv_i32 res =3D tcg_temp_local_new_i32(); + TCGv_i32 addr =3D tcg_temp_new_i32(); + TCGv_i32 res =3D tcg_temp_new_i32(); TCGLabel *label =3D gen_new_label(); MemOp mop; =20 --=20 2.34.1