From patchwork Sat Feb 25 08:59:42 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Richard Henderson X-Patchwork-Id: 656440 Delivered-To: patch@linaro.org Received: by 2002:adf:a3c6:0:0:0:0:0 with SMTP id m6csp1351646wrb; Sat, 25 Feb 2023 01:01:31 -0800 (PST) X-Google-Smtp-Source: AK7set//mwEwBkEvI1dRl8qMCy4c8OKAgSMpXDQ5n3pgHfCBrq6kpVmVB3inSue7VBtBN4l+NuS+ X-Received: by 2002:ad4:5aec:0:b0:56b:fe6a:df87 with SMTP id c12-20020ad45aec000000b0056bfe6adf87mr36532318qvh.52.1677315690932; Sat, 25 Feb 2023 01:01:30 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1677315690; cv=none; d=google.com; s=arc-20160816; b=VhGkVMR39iqHSoaiNfgblgWRZiNZNEOqxIV5OjiVUndn6T+a8fTG5XDQtgE4KTGYW6 TtuNUiJMPYqASuOB3sdYbAsW35eTmN2pMa+KShekjDMpwrx5Bjpc5SSqJnIaGcIw/RkS JmGVP3Oi0L8HaZpXcEYDhvOD2ooOM0Rcf2v4/kBrvNGsgbbURwLloPVxELVhEiXO17NH QTd3GwX5jGItDrZEh66jyfG9cr0k7wL7quAnSaYSwLoKwMlEAqGcP/bcTUXvGTEQ2nrF xCSfa7hlg6GndycJCsBW7JvawOgDG/FCqdkxhpgst8KkLxiiDdJHAM2JFln0mcN5EzeN Gpfg== 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=Mh4thRQ4Wn7bOCMgvMswUvAP1fzBA8EQKfys/+SzPaE3m3l3ule7nyNbA9EJkBnBlO QIlrhT5THCKfDG5xi+sk6j1aTca8tXKH/TAuKyBHVjULRqNQbO00Oggja+YloVVlGRdo Nsx5lAVGJSuVUXwQkhiPiL9mjolSPag6427SoT1R7FiyHtAFdsdC6bMn0E5+PAmKABU9 OeCRZpxCO6Z03tpZnOFMoPSnsRxiP0NEXxcPyqz4baJ8Ee2SqGYtKRxGTVYVFx0kLP61 fa2bYRQZlFL7licHi3JNIuVOtuKvrRyTnnvgHd9MOFnXIBhRdAUPBejoy1WFXXCA7o1r JpGg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=jBeBhtob; 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 fh6-20020a0562141a0600b0056d4e09a30asi1674504qvb.324.2023.02.25.01.01.30 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Sat, 25 Feb 2023 01:01:30 -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=jBeBhtob; 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 1pVqQF-0001k8-UR; Sat, 25 Feb 2023 04:00:52 -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 1pVqPz-00013O-3t for qemu-devel@nongnu.org; Sat, 25 Feb 2023 04:00:36 -0500 Received: from mail-pg1-x531.google.com ([2607:f8b0:4864:20::531]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1pVqPv-00058u-2F for qemu-devel@nongnu.org; Sat, 25 Feb 2023 04:00:33 -0500 Received: by mail-pg1-x531.google.com with SMTP id q189so899515pga.9 for ; Sat, 25 Feb 2023 01:00:30 -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=jBeBhtobS2gdLgParHHPb0BeEM3/ReBj82tHYI78KaGSmdf5nfAfmjQEVXUZjM5nKM tMlyA1pUOcdJb8rLC5nyUbLtDw9sXuu+pICXuUbHX9CK+547LC1S4xd/PzZfWw6unf1L YJ3xI3kFPrX+/blnJZ0yqRW1fcadqil6x3BhPuIC+x/iQbPNu7k/puCG3QnIqS5PkEUT NKkAUGapRj2guaEpwhiMYvSlWIuT4Ooc1zhdZ35eDw7APrW1lYOb9ebjb6M2dHx5KTze C4XcQhpnAkqOq+NoMNVyU7Q8pufcW2RHxWY0LYglK+bIDxMCpHir083jNobBpOAx1ARn nghg== 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=YFzZqM+mHnUOwaExwKKjK9dpXMu6p8tX0lS4iQZVt3aSHgCC+UG5fPkXa1icapwvrR pxUzYdVR9aeN4vS/gbpxvgtu+OaYaUr4Trg+zFKY4Z0dVhX/0VqRVEg9jWrnrOGE/rqc zLLt5B2YgOriOCkqFQDIOG9veFocEOUY1fUpgZC8AAEfHXtD6Nae++6tSB2zaUMRV8xW KfFIcGsV1n1pyDKlgAi9qiGKLHzdPE9E/EmLnmYB2ovQsdGw3viNj+CieMGaOAG1q1Zx RV8ynvq8P39e1qcsqSsFywigv0p4FipoRtYS4sogLDjM6qoW1Q5H6ZsTsQ9Ew0HMTIPo ddaA== X-Gm-Message-State: AO0yUKWaxxkjvlO7Zq9NeIkIwgPUwbT9xRd3okjgVvSO/xiYArcvDwJQ YeU5erW89usNgL0URn87KDxfSdFGiCTgm5UkUCk= X-Received: by 2002:a62:17cd:0:b0:5a9:cbc3:ca70 with SMTP id 196-20020a6217cd000000b005a9cbc3ca70mr14411178pfx.24.1677315629016; Sat, 25 Feb 2023 01:00:29 -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.27 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 25 Feb 2023 01:00:28 -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 27/30] target/xtensa: Don't use tcg_temp_local_new_* Date: Fri, 24 Feb 2023 22:59:42 -1000 Message-Id: <20230225085945.1798188-28-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::531; envelope-from=richard.henderson@linaro.org; helo=mail-pg1-x531.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;