From nobody Fri Dec 27 00:39:02 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=1677477192; cv=none; d=zohomail.com; s=zohoarc; b=Y99zq7px30n8zFAHYD4lx9tWlinpD6EHfigiNUyT4sdwq8V9pIkYN+jyIDkEInwpY6LGOfqgocChmRruRrH6UDtVQ3zinoYB2WWS7iuBnRQtlcdcrRcBqktDveZa3sjCKF1/pixUIYrzPjHG5qGyk5DfXpRsRRU0eIUBjJur4Kc= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1677477192; h=Content-Type: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=DKCOLyI/wsJHJKYRWjsEmHI6WWtv0JONwA4WRgdn8Pc=; b=lbaoMouiMU+zYUQ5FpV9WA/6UQVLSjSWX3hingzsznvQE7mNej5840AYZj/qiatX0BbW/+m0AeAVek831UgbkptI0ZS43exMkcAyqy8ymD+Is+JLRbqhrg3saVdydOrBGkbRHYPnygCYPI1sIWyOvQSuLewWhdfwSSSw5ETXn6Y= 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 1677477192461888.8108067333029; Sun, 26 Feb 2023 21:53:12 -0800 (PST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1pWWEt-0003Dk-TT; Mon, 27 Feb 2023 00:39:56 -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 1pWWDU-0003sp-Hl for qemu-devel@nongnu.org; Mon, 27 Feb 2023 00:38:28 -0500 Received: from mail-pf1-x435.google.com ([2607:f8b0:4864:20::435]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1pWWDP-00037g-CX for qemu-devel@nongnu.org; Mon, 27 Feb 2023 00:38:27 -0500 Received: by mail-pf1-x435.google.com with SMTP id ce7so2782677pfb.9 for ; Sun, 26 Feb 2023 21:38:22 -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 k12-20020aa792cc000000b005a7c892b435sm3342137pfa.25.2023.02.26.21.38.19 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 26 Feb 2023 21:38:21 -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=DKCOLyI/wsJHJKYRWjsEmHI6WWtv0JONwA4WRgdn8Pc=; b=KAmnNQYG7oo7HRbzLj7ZekprHiufPjxwwQEE07L82SEACBph3bvEseJA0yQ+M91w8M Lr01udLhLA0x9CEqn+e2thM8jFPv73np9/YMsYrrTxdltAurbKD7AU9YztRe9gNGwuFb mGXt2GsKFQhinMMiXM70imU4uGc9YklIcSu212TzjJ2YQHAMeoXwt8UZx0RBoi1p6v0S ++Cb7rJCJ0PU7NjxYDPvcQLthlkAWHZkcoHOI854Vh+l9dGXeeNKKXFjDwUQsWMYbMBS zixEX+fU9pVCC9DMUAaWliSAQLHKQHVzl62IYp1RdSTkBNtYgHBOq/YetKzCTJPnMD9h cLtg== 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=DKCOLyI/wsJHJKYRWjsEmHI6WWtv0JONwA4WRgdn8Pc=; b=M04bFfV+gdb2BWm7qkSgY8yUdZ3OU7KVU2J1Dh2r0frmHKGwnBYFBSY5VBnZgthtBV MJopxAO4eSppI/61Ze1jD42NO6WgEMof9W9Zu/gIaCCBY41rT4tq8vqHmctxBiH7PhAA 4SJLRU2aHBxfsN8es+gFyKQ/GN1Swcc5Plhfh//IO5h0BINL+PXiiovfgQNBwSdW53e8 yMmCVlQgL2WMa2rrUQAPRZRnxL/k9YJPtJf0Xo93hwXWYOdQkaFa3gqBKyrA0Wuw00DC pbXsl4puYugFiS86RDRU/j39RwaxDQZxQXyztNdGdwV6xB90fTum6pv1hiTS5enuLpN1 CEzQ== X-Gm-Message-State: AO0yUKWv8Hn4MdfFF3slg6L+4CaxBDm8jfM/1FQ824GXL6HjH0brdYx4 6E2owsGnYxSeukmhr+qFhirh2DxsZDbfjRnXjbA= X-Google-Smtp-Source: AK7set/VQW/UIUnnzxbnxGuTQdK1wnyYqNyN06sJdhIAhsJYrFThJe5/jvRPS3Xnc6UybcZd/awnDw== X-Received: by 2002:a05:6a00:1:b0:5e1:f4e3:57d4 with SMTP id h1-20020a056a00000100b005e1f4e357d4mr9472495pfk.17.1677476301994; Sun, 26 Feb 2023 21:38:21 -0800 (PST) From: Richard Henderson To: qemu-devel@nongnu.org Cc: qemu-arm@nongnu.org, qemu-ppc@nongnu.org, qemu-riscv@nongnu.org, qemu-s390x@nongnu.org, jcmvbkbc@gmail.com, kbastian@mail.uni-paderborn.de, ysato@users.sourceforge.jp, gaosong@loongson.cn, jiaxun.yang@flygoat.com, tsimpson@quicinc.com, ale@rev.ng, mrolnik@gmail.com, edgar.iglesias@gmail.com, =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= Subject: [PATCH v4 28/31] target/xtensa: Don't use tcg_temp_local_new_* Date: Sun, 26 Feb 2023 19:36:58 -1000 Message-Id: <20230227053701.368744-29-richard.henderson@linaro.org> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20230227053701.368744-1-richard.henderson@linaro.org> References: <20230227053701.368744-1-richard.henderson@linaro.org> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" 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::435; envelope-from=richard.henderson@linaro.org; helo=mail-pf1-x435.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=unavailable 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: 1677477193763100003 Since tcg_temp_new_* is now identical, use those. Reviewed-by: Philippe Mathieu-Daud=C3=A9 Signed-off-by: Richard Henderson --- 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