From patchwork Sat Feb 25 08:59:35 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Richard Henderson X-Patchwork-Id: 656437 Delivered-To: patch@linaro.org Received: by 2002:adf:a3c6:0:0:0:0:0 with SMTP id m6csp1351444wrb; Sat, 25 Feb 2023 01:01:00 -0800 (PST) X-Google-Smtp-Source: AK7set9yP+seD7KZ5OSgzcGY7WKtVx1mXcB23eaQnpuwsfLslVvSY4nRM1lfkDcWOXTNnzcU7YyW X-Received: by 2002:a05:6214:b67:b0:56e:9c11:651e with SMTP id ey7-20020a0562140b6700b0056e9c11651emr39821062qvb.27.1677315660325; Sat, 25 Feb 2023 01:01:00 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1677315660; cv=none; d=google.com; s=arc-20160816; b=cfhkmuriCTXPNr2ZnKucDn3QqweQvC+TCLIyD2mkiXjs1q012KCx3ry9DPGwCsz+P1 9gRNwBemkon97q+AtgBXioHmGQiilH1UksaTnStxizolEsQduYa9S1OgP9kDFx1Zx43U 45An9rjtjdW+S7RetgX+b4OkbWc8vvAxVjVTK3wjLUyRKxEyJ7lBBk50NmoRGlJjDIe0 GA8yNub13acPyxCtNoT8Grbc6Bt40AGb2NjLoma/fzIoKKNUcVCx8AFgKmBF9hbb1DbY jbzIIdcP+7TaWhY3A0QAEgwW37d5qtKe9WjzIifNyOPu1U5Mhy67d6NQD3o80Wyv39HQ eNPw== 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=nOjB7Oa3s7/QHz69KU/odzNJz8JnUW0khbG4X3to11I=; b=E1J+9gYxIIjjYUg9M3zJrJGTF0nYjPTahbknOV+GU3SgBoBw6SF4A9FMSc0b8XMrci NGCpi0EaKeoVFQjnwGdqGsc3BpqdRJPRAdir1ynS+waTdEhJkDysSNX+cJaOdTm386R0 iNlKsZHUgFYrvNIvVp6mq+fGvfYEuEwQ6RxEBZt+qDsLus7yC38v9G4IGvobo2F7AsSE Y2PFJ3/UcjYYerCVbMNP8t4f1BLFt9pHk1ev2E4gux8q4T65kc7gYiXg8v7hGv1HhO6h LlFIEwzpxGoKzDHJidLQKfYgWhPHVC48fTOnF4L9y+bX5JXnmr7ShOZI/MxGGgn1Er4Q N57A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=um6gzMSQ; 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 k9-20020a05620a414900b007427a5446a1si1577231qko.278.2023.02.25.01.01.00 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Sat, 25 Feb 2023 01:01:00 -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=um6gzMSQ; 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 1pVqQJ-0002F3-Fr; Sat, 25 Feb 2023 04:00:55 -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 1pVqPn-0000cE-Am for qemu-devel@nongnu.org; Sat, 25 Feb 2023 04:00:23 -0500 Received: from mail-pj1-x102a.google.com ([2607:f8b0:4864:20::102a]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1pVqPk-00055l-4p for qemu-devel@nongnu.org; Sat, 25 Feb 2023 04:00:21 -0500 Received: by mail-pj1-x102a.google.com with SMTP id 6-20020a17090a190600b00237c5b6ecd7so684568pjg.4 for ; Sat, 25 Feb 2023 01:00:19 -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=nOjB7Oa3s7/QHz69KU/odzNJz8JnUW0khbG4X3to11I=; b=um6gzMSQMiO40ZzPHH6gCRrgy7L+DP/WuKBQE4Jo/B3Ww1gDdc93beDn9XrgTj9NlP xiAzbK+yRthFzTDrqvshLEYjg9eXiN29Zru6CfTuSpVl2arWtq5WANQTXRtg0U/P87W2 QSG8WbL3STvVtKAF53DiswxzNUXFGVdvcfV0ebQIRZfEoaX15oTrV/tjrg3ilNAN2luC /8FYOb1aJSiYZ1mR/FT51zdYL8rR1Pgg0RfF++lmXWRmxMG3X/wEp+meMpjsT6Eeu6kd zfT6DppuhL65fqU4mrDH5FbKAjXPQMS4nY4gMHQiSKM4HgQ3FynG2PPXmXCHCiLloVZt qDqA== 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=nOjB7Oa3s7/QHz69KU/odzNJz8JnUW0khbG4X3to11I=; b=BJ5gqM1CrVBwGRjC68K4Zl4OcBjsJ7YL6iV0vQrcy/DIJoDq13J3oiXmleZ2eXodIr tbdo45TcuInM4MhYLmyemTIJRPsoSwMMHrWJuyVo5t/7HCj3H2AbSa7o/afFcUyc3HZJ j86zaTmhyYfoRwkk58ws779xlJPejgyM/0UIVg9f9t10wYfgZ+DG5QSRNnS6Zqp1MCdW 1WgpKNUKO4k4Kkag9tHgbiXUptw42SGXlfv2d8YaJQpC2Vblx66b70HZGGqakwC39rsH QqUu7DUiVt6aRtRTq5n5eb+UA5SoblbjVJ54UgO/hb7zLe1ravZS7AMd5VoCSG9qYQg5 K0YQ== X-Gm-Message-State: AO0yUKXtvRKKAd2xtutPbbmokAw2P9+BUA2w2D553VH+opKR2bmoBhyl 3IvvAneVfW4wi+NVorRh8cWgC0RntRBqZYU/qtI= X-Received: by 2002:a05:6a20:a692:b0:cc:ab23:aa83 with SMTP id ba18-20020a056a20a69200b000ccab23aa83mr2154429pzb.53.1677315618740; Sat, 25 Feb 2023 01:00:18 -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.17 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 25 Feb 2023 01:00:18 -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 20/30] target/arm: Don't use tcg_temp_local_new_* Date: Fri, 24 Feb 2023 22:59:35 -1000 Message-Id: <20230225085945.1798188-21-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::102a; envelope-from=richard.henderson@linaro.org; helo=mail-pj1-x102a.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/arm/translate-sve.c | 6 +++--- target/arm/translate.c | 6 +++--- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/target/arm/translate-sve.c b/target/arm/translate-sve.c index 02150d93e8..718a5bce1b 100644 --- a/target/arm/translate-sve.c +++ b/target/arm/translate-sve.c @@ -2694,7 +2694,7 @@ static bool do_clast_vector(DisasContext *s, arg_rprr_esz *a, bool before) return true; } - last = tcg_temp_local_new_i32(); + last = tcg_temp_new_i32(); over = gen_new_label(); find_last_active(s, last, esz, a->pg); @@ -4342,7 +4342,7 @@ void gen_sve_ldr(DisasContext *s, TCGv_ptr base, int vofs, tcg_temp_free_i64(t0); } else { TCGLabel *loop = gen_new_label(); - TCGv_ptr tp, i = tcg_const_local_ptr(0); + TCGv_ptr tp, i = tcg_const_ptr(0); gen_set_label(loop); @@ -4427,7 +4427,7 @@ void gen_sve_str(DisasContext *s, TCGv_ptr base, int vofs, tcg_temp_free_i64(t0); } else { TCGLabel *loop = gen_new_label(); - TCGv_ptr tp, i = tcg_const_local_ptr(0); + TCGv_ptr tp, i = tcg_const_ptr(0); gen_set_label(loop); diff --git a/target/arm/translate.c b/target/arm/translate.c index 92955d505c..9c8e1ac04c 100644 --- a/target/arm/translate.c +++ b/target/arm/translate.c @@ -7136,7 +7136,7 @@ static bool op_strex(DisasContext *s, arg_STREX *a, MemOp mop, bool rel) tcg_gen_mb(TCG_MO_ALL | TCG_BAR_STRL); } - addr = tcg_temp_local_new_i32(); + addr = tcg_temp_new_i32(); load_reg_var(s, addr, a->rn); tcg_gen_addi_i32(addr, addr, a->imm); @@ -7289,7 +7289,7 @@ static bool op_ldrex(DisasContext *s, arg_LDREX *a, MemOp mop, bool acq) return true; } - addr = tcg_temp_local_new_i32(); + addr = tcg_temp_new_i32(); load_reg_var(s, addr, a->rn); tcg_gen_addi_i32(addr, addr, a->imm); @@ -8696,7 +8696,7 @@ static bool trans_LE(DisasContext *s, arg_LE *a) * Decrement by 1 << (4 - LTPSIZE). We need to use a TCG local * so that decr stays live after the brcondi. */ - TCGv_i32 decr = tcg_temp_local_new_i32(); + TCGv_i32 decr = tcg_temp_new_i32(); TCGv_i32 ltpsize = load_cpu_field(v7m.ltpsize); tcg_gen_sub_i32(decr, tcg_constant_i32(4), ltpsize); tcg_gen_shl_i32(decr, tcg_constant_i32(1), decr);