From patchwork Wed Mar 1 02:56:40 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Richard Henderson X-Patchwork-Id: 657789 Delivered-To: patch@linaro.org Received: by 2002:adf:a3c6:0:0:0:0:0 with SMTP id m6csp3272628wrb; Tue, 28 Feb 2023 19:07:19 -0800 (PST) X-Google-Smtp-Source: AK7set8maeVrsD+zwE2NIMp1gt+LEDP1CQXDSguusrcqx8xzc2RF3xv9JihbiL4xSjcVkUUREw4b X-Received: by 2002:a05:622a:30b:b0:3bf:d17d:c94d with SMTP id q11-20020a05622a030b00b003bfd17dc94dmr7424852qtw.54.1677640039414; Tue, 28 Feb 2023 19:07:19 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1677640039; cv=none; d=google.com; s=arc-20160816; b=uBn7FpBf7PcqdBwNqKVNt6eaeUe6mkOzMiCR3ug3L7LPVMl3DU2hrqxlI4uQBnzl9Z 349O8SSU+GYskWQf2IZsAD3GZj5w3vAweF2R3uKr5H9FTUZI+jzZnhJrD17OJqDzZ+xm 4B3QM4xh3uOhqSvllAE7/GPNRPiycTXCpTKC53x3aWdeUC0oTPSc8VvxKv1S1T7hw6fI k+KPMV/ozhHFjIQ3BgSEBhE4Wy+ByPDKVi3CwYpxfoxxyCuDS/ie6ysGEEXo6WDqiWUI aSPCuvHaxeLGapaKtB+xV0b1+VI6KG4653aA/ELDtQeWvD0Yq6OetbWGBOzzHxhC4M1o 9QSA== 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=DKCOLyI/wsJHJKYRWjsEmHI6WWtv0JONwA4WRgdn8Pc=; b=Aq23GJoI+DuO9ex8B/8F7F0V/fUuWjbEOlQri+ZHVaK+GcIceJuFS1BAU/d9wbliKI xVgSc64vEKSeCp2W49LxbAERRoSdgqMPkLCW+kRGw5/BPfKDGotGLxxzCd7szfHBoC/n V1xi84qCi3t6e4JTD8MhQgC3xv+xvbYxJ8q3wNjb7mTkhH+LE9IAuzQfRibji/Irzo1A bu/a04v7JHUble+e1lpXpIzLNR1h0/WbUOSQhKTNIBJFXVNYzD/B0QFjx49TvdJA6n11 Bj7qYIawep+FIp1nG4xK4t6I3i/CjktIz10ru75Axe34y+bI6/+X4/Sv66iTCTGy60ox RTNA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=q9G9r0gU; 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 u1-20020a05620a0c4100b006fcaae20037si10900736qki.741.2023.02.28.19.07.19 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Tue, 28 Feb 2023 19:07:19 -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=q9G9r0gU; 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 1pXCiv-00053p-Dd; Tue, 28 Feb 2023 22:01:45 -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 1pXCie-0003Dr-Ox for qemu-devel@nongnu.org; Tue, 28 Feb 2023 22:01:28 -0500 Received: from mail-pj1-x1035.google.com ([2607:f8b0:4864:20::1035]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1pXCic-0004N1-SR for qemu-devel@nongnu.org; Tue, 28 Feb 2023 22:01:28 -0500 Received: by mail-pj1-x1035.google.com with SMTP id m20-20020a17090ab79400b00239d8e182efso4974609pjr.5 for ; Tue, 28 Feb 2023 19:01:26 -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=q9G9r0gUppr6NZ1clrSjHRRMPQszRtvC1fKgkBO6T5SVUXAnhM/tY1GvPI361E0Xzz /x3SrLA0ugSKdxE4/AgLmODvABdw3KHgV+yT12YXekclfrxclNpWCxGBY3L8uXVpGN7q 4CNmIbKf6NQT1fNrsR9e0jWu7emdySRkPLHvxPqShwOFDamBuyuGkAOoKLR6ZyC6a7bd ZAI3WcMPDg2/sCBN5wmu/O6s4GNlm4MSyNugRt6C/HLGNzBM0+MF/wJIxLgGTvG8E0eV LMQbj+uUjYBOwJ+p7h+fufM7TCRg5ctLRL1E4AFMpPUQaVbg+zZbsokPzq/l1onCZf/N qAyA== 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=KpAJKD6rzoYkZurZKKgf5WHqzhhYvMkGgHwsftKuElwuYRWE1OAQ128e3Who++CBAL xcjEck7se/hVFHpB9+i2n5X0WcDIbUJAdCdefv429ZoUj4fqWAR7xtmaB7DfHhFNgsnA 4vrfP9wF6voBzwmA4fbFD4ITVneX4x+7vlCRsL4Q3Z3F+xTCSKyTcuaQtQOkiTGnkV6T vUIuDEv+c6EfffgsMu3KoP20wenqG5vnb7hlQEVJGmzWHfJKIRuBl8a1IsWEofApLP43 bK3zWrW/WmUAUz0OjdziYT+g7Pivd04FgW88W6gkcaMapECyjvXkoxs8u0PlbCIJVGpc q8Hw== X-Gm-Message-State: AO0yUKUA++8ZGwhnHQDoIt9khsDe5mx5X9akzMvoKFnPnmmWsqP8erqd PV+hpgjDVJ3jXg3tE63+F9HGzp02FUPidfnzPH4= X-Received: by 2002:a17:903:1c8:b0:19d:2542:96a4 with SMTP id e8-20020a17090301c800b0019d254296a4mr6086685plh.4.1677639685484; Tue, 28 Feb 2023 19:01:25 -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.24 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 28 Feb 2023 19:01:25 -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 59/62] target/xtensa: Don't use tcg_temp_local_new_* Date: Tue, 28 Feb 2023 16:56:40 -1000 Message-Id: <20230301025643.1227244-60-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::1035; envelope-from=richard.henderson@linaro.org; helo=mail-pj1-x1035.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 those. Reviewed-by: Philippe Mathieu-Daudé 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 = tcg_temp_local_new_i32(); + dc->sar_m32 = tcg_temp_new_i32(); dc->sar_m32_allocated = 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 == 0 || arg_copy[i].resource != resource) { resource = arg_copy[i].resource; if (arg_copy[i].arg->num_bits <= 32) { - temp = tcg_temp_local_new_i32(); + temp = tcg_temp_new_i32(); tcg_gen_mov_i32(temp, arg_copy[i].arg->in); } else if (arg_copy[i].arg->num_bits <= 64) { - temp = tcg_temp_local_new_i64(); + temp = 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 *dcbase, CPUState *cpu) DisasContext *dc = container_of(dcbase, DisasContext, base); if (dc->icount) { - dc->next_icount = tcg_temp_local_new_i32(); + dc->next_icount = tcg_temp_new_i32(); } } @@ -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 = tcg_temp_local_new_i32(); - TCGv_i32 addr = tcg_temp_local_new_i32(); + TCGv_i32 tmp = tcg_temp_new_i32(); + TCGv_i32 addr = tcg_temp_new_i32(); MemOp mop; tcg_gen_mov_i32(tmp, arg[0].in); @@ -2303,8 +2303,8 @@ static void translate_s32ex(DisasContext *dc, const OpcodeArg arg[], const uint32_t par[]) { TCGv_i32 prev = tcg_temp_new_i32(); - TCGv_i32 addr = tcg_temp_local_new_i32(); - TCGv_i32 res = tcg_temp_local_new_i32(); + TCGv_i32 addr = tcg_temp_new_i32(); + TCGv_i32 res = tcg_temp_new_i32(); TCGLabel *label = gen_new_label(); MemOp mop;