From patchwork Mon Jan 30 20:59:25 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Richard Henderson X-Patchwork-Id: 648592 Delivered-To: patch@linaro.org Received: by 2002:a17:522:d8c:b0:4be:c3dc:14d8 with SMTP id d12csp1376116pva; Mon, 30 Jan 2023 13:03:30 -0800 (PST) X-Google-Smtp-Source: AK7set808xpnhREXAUoBSkA+XsgDbCEV05zB+sgxyTsUhNmmxxIly7JXzXbWMWPuKCEPYiwjM5ib X-Received: by 2002:a05:6214:d6c:b0:537:762a:e85d with SMTP id 12-20020a0562140d6c00b00537762ae85dmr38171213qvs.42.1675112610571; Mon, 30 Jan 2023 13:03:30 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1675112610; cv=none; d=google.com; s=arc-20160816; b=I9k8Y908O8zOGYBnarMkyQgwM5y43RvvI5YJMn70IEiZ0uMmgPvwZ3J6kfJeE6zWLu uHzJJnEQgQkrdru9HLUYSiC7AGaWANDLrCmQ7EVtySr/G+GAq1dq81kohfF+5m16O4uQ Qw11TQt0o3727IqL/hVxukUtfhleJ5eCn/eoBso7LPSF9LEdjOrH8U1Lao4UAYam11gz DM7HkN/1rDyJJrGrz99tz0YIddPIZStjJ5n593SoSxl4VkkxAT33U46jDsEpZWv1Qsmi mif4pwTmnX3uSWLccXXeLfmu3Y8W7qqtGJTcNyKQy7QP6KJvuYD+DTrsGA14jJu4j+fE gppA== 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=ReB1vaX5bh+3X6AkZ6hIM1RvSLfgvq375cN+IdwrJjc=; b=t7kWf2jbSnNulTJiwM19GKZSdlNlhNcl1nOkxCRIm3BkgDo6rEMi8AmpwRvm/J2P+A PvxS4ReOZWsUerh6XikOyxTHRJaEZb82+KVCunCGmUhaS6LmzSJYxaCjpFnLcusJp0Zc M1rjEHFht3ge3DjIi5JaMdW9FfjjawWbJieuioDr0ZYq2H2CJ6YmKTgLR74+jnXnTrZ4 FCHxyA31UflKIygpe1uQ4JP8cacq7h8iq6kw9p5eBpwZTM5a0oOesLBOutRrlaH+BF87 /2eYIM0ib9dez78MDmNzPzi2CAzgj/BRI2Z8rUtbdGeNuSRpnDraAgbtKENLNSZFaz59 Ckcg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=ZNR+SzHo; 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 x7-20020ae9f807000000b0071d18e31edesi2972781qkh.166.2023.01.30.13.03.30 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Mon, 30 Jan 2023 13:03: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=ZNR+SzHo; 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 1pMbGR-0000SV-NZ; Mon, 30 Jan 2023 16:00:31 -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 1pMbGD-0008Uy-Gv for qemu-devel@nongnu.org; Mon, 30 Jan 2023 16:00:18 -0500 Received: from mail-pf1-x42e.google.com ([2607:f8b0:4864:20::42e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1pMbG9-0005Tb-F3 for qemu-devel@nongnu.org; Mon, 30 Jan 2023 16:00:16 -0500 Received: by mail-pf1-x42e.google.com with SMTP id z31so8774800pfw.4 for ; Mon, 30 Jan 2023 13:00:09 -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=ReB1vaX5bh+3X6AkZ6hIM1RvSLfgvq375cN+IdwrJjc=; b=ZNR+SzHo8ZheErYcJW5OzjBjOP96PRIguhJykxOlqIu2hX07mAP6UqD7dcQL2fRiXl qLaTGFkCJnexHCrInWEFcf98MLV0ix2kyypBZWS7Er64vOllt8yZnmvZuDtrP7ZDA0lc oqC1iAqNM02lgE37fO7nyjpKe1XaG0gy6lc5Y5Aho+8Mx5M40V6NVtF4F/QwHJtuzVcB +oC17DpY9Fjn2PDK6eBIFUT/s4I+mA3Z7IEzUKUjhXbKlRAF3Xgx3sLenEpP2yl/jJSZ +NzZ3BmTJihMvFh3I0fkszvj5fPJNxA1obJ42IDPI0ggSwEFE6Zx8ZyxYTrn8sSCT3KP Fxpg== 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=ReB1vaX5bh+3X6AkZ6hIM1RvSLfgvq375cN+IdwrJjc=; b=ifdygeGp24iEpffJKCVt07Aa70mu3PgdwF2XPvzAhujfXTK9exWva85Geh2ijUmQZf /wMRTvxJGDRPu3mwWN3nDisCqJ07lWFiMVbxtebY0sFhIkdR6ZPZomAqnYh9o2N9lvhw fygw50OknRzx6A2zfF8aulQ0SaTTofpuA7m1j1A4Sy9eb38dRlUCocereyNm3AeiXShD M/73kj4iZB1luu1BgwTJrurGIF3GqmanlK0MhQ3MNaCQ8H5/O2SLNzbmfLy9/dHBzyYI 7dAHi+KrBPdkW9OQVnPyZoadCzunpyJRYwvsxXm6a/Rhg5XcygFnWmpWAdzAHzXP0wKF SKZA== X-Gm-Message-State: AFqh2koLK9QrWU8s2L0I8HqJCxQn3T1FIKqKCO1eDbO0gk81mnZ3tmb3 fowtgSrJR0gN15t5aojamuqQfia0q/ZLDBcV X-Received: by 2002:a62:5e81:0:b0:590:22b:c29d with SMTP id s123-20020a625e81000000b00590022bc29dmr22984783pfb.10.1675112408109; Mon, 30 Jan 2023 13:00:08 -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.06 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 30 Jan 2023 13:00:07 -0800 (PST) From: Richard Henderson To: qemu-devel@nongnu.org Cc: peter.maydell@linaro.org, cota@braap.org Subject: [PATCH 17/27] target/arm: Don't use tcg_temp_local_new_* Date: Mon, 30 Jan 2023 10:59:25 -1000 Message-Id: <20230130205935.1157347-19-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 Received-SPF: pass client-ip=2607:f8b0:4864:20::42e; envelope-from=richard.henderson@linaro.org; helo=mail-pf1-x42e.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. Signed-off-by: Richard Henderson Reviewed-by: Philippe Mathieu-Daudé --- 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 12eeada122..7f70d9c78f 100644 --- a/target/arm/translate.c +++ b/target/arm/translate.c @@ -7110,7 +7110,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); @@ -7263,7 +7263,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); @@ -8670,7 +8670,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);