From nobody Fri Dec 19 17:42:14 2025 Delivered-To: importer@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+importer=patchew.org@nongnu.org; dmarc=pass(p=none dis=none) header.from=linaro.org ARC-Seal: i=1; a=rsa-sha256; t=1684853111; cv=none; d=zohomail.com; s=zohoarc; b=L/hbMf5q+ZydJ7i/aU6wkE46t4XW2/wdn8TyEtipP1DRtCPH3kFoTrbw/Lu+5+oaxsoTptcfKca+X1GmT7TBB9w4qZPTg+WhC1hCJp30GbpB4HlPe+M9Lli193FEUoiwFZ2e/ZL3b7ZWk0vtyfNpWoXpGVk+fXImaopAWYbrs38= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1684853111; h=Content-Transfer-Encoding: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=wZqbKGvvBLnxdV8hORtypSTdUMPJNxpFAqcst10iFXc=; b=lRoG2153Dcmkgqj8bteTzDetpBbRHEb6bENMMRmSZcQUveyeqnXle3+D0uY0B+IdE3rO6sopL8IscOvIFGwWmezs1QXFViuRiuM7p1yyXz8yH39Lb16N0eAgfiyEefVWyMqwgCqz3EHrKbvbQt6Wkyy3YKdvWcdedoLIzi10QC8= 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+importer=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 1684853111524868.8057790793935; Tue, 23 May 2023 07:45:11 -0700 (PDT) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1q1SSK-0004ad-Fx; Tue, 23 May 2023 09:53:41 -0400 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 1q1SSD-0004Ig-Ev for qemu-devel@nongnu.org; Tue, 23 May 2023 09:53:33 -0400 Received: from mail-pf1-x434.google.com ([2607:f8b0:4864:20::434]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1q1SS9-00030F-GG for qemu-devel@nongnu.org; Tue, 23 May 2023 09:53:33 -0400 Received: by mail-pf1-x434.google.com with SMTP id d2e1a72fcca58-64d2467d640so6480913b3a.1 for ; Tue, 23 May 2023 06:53:28 -0700 (PDT) Received: from stoup.. ([2602:ae:1598:4c01:c13a:d73:4f88:3654]) by smtp.gmail.com with ESMTPSA id b8-20020aa78708000000b0064d27a28451sm5796111pfo.100.2023.05.23.06.53.26 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 23 May 2023 06:53:26 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1684850007; x=1687442007; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:to:from:from:to:cc:subject:date:message-id :reply-to; bh=wZqbKGvvBLnxdV8hORtypSTdUMPJNxpFAqcst10iFXc=; b=COHHOmsaIjZG39q6zg74Ktlio7u+mEC2PrH+PgR7ot9+JLiiDzjMv8q6SCfSSdTb5x 5YaSWiq5MBqUMHk4pr2iB7zz65lB65hvtEHl2gzgMw7zFk1sFPyrzUkVobpEtc5u77VK bYJ4foGJ4g9wWkuHzfgTJ6JYD/8wGXf5ro3uG7DPQzd0mXyu4EKrjosm1Wt4UmckdhO5 qSzR1Olht9HcUw1Fx5mhOtAfTenYaEuv8RyhdsdLAX9uOaAy5ah4BCflTa0YxO31sG7y EwFlwSpJJHWngcOKQQG54UtUB3G575VpWEZewZvE29WndwYIWL9CaeBxv4H7CnDhXR1p XgPQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1684850007; x=1687442007; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=wZqbKGvvBLnxdV8hORtypSTdUMPJNxpFAqcst10iFXc=; b=RtLzocZEWQYfF5uoklUmz1TmAmoUB+MwrIdb5fJbZu29HDw/2O397EE7zp53kHS2+J mgKbfPMvHU5YouWjbp6RTZMuqTa+X3xToGIz8QlJaOeL1my9KKEUElNJEj/aZWznpTT7 +hhHZFamhyn1jE+LT5/H4LC3Bxr5p9Tq1AYfHvfLkhj62i1jK6iHDWqdXXRbslpXm6j3 vtQYbeRnxcuynXrnH5kazrJjb4PY00tiVuXiJflcTn/sHVLGaZPCtP7e/Rd63rjYeepl 8bdC4P23mMtskUTZ2Ot5SzAqd/wfVprsOphRzMomHYo2aQwBN14zz5qZF2ohTaHpWGZn 44Nw== X-Gm-Message-State: AC+VfDyElhuYoISZuPAGGo4j5+7BM/m2Q7qupF7wuo/ilH/XqI+1H/9D TRpHkt/4CBWzAaL1e4+aPunf6/fO4gj5KT/I3yI= X-Google-Smtp-Source: ACHHUZ4hF8OuZRDSyRqz+GNENDqvO3WzaNe0TQ/l/FVcHx3mfPG41VvYFw7F5ZR2ngIJvfnJJLKTGw== X-Received: by 2002:a05:6a20:e68e:b0:104:41a0:c51a with SMTP id mz14-20020a056a20e68e00b0010441a0c51amr13121910pzb.38.1684850007323; Tue, 23 May 2023 06:53:27 -0700 (PDT) From: Richard Henderson To: qemu-devel@nongnu.org Subject: [PATCH v2 04/52] tcg/sparc64: Remove TARGET_LONG_BITS, TCG_TYPE_TL Date: Tue, 23 May 2023 06:52:34 -0700 Message-Id: <20230523135322.678948-5-richard.henderson@linaro.org> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20230523135322.678948-1-richard.henderson@linaro.org> References: <20230523135322.678948-1-richard.henderson@linaro.org> MIME-Version: 1.0 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+importer=patchew.org@nongnu.org; helo=lists.gnu.org; Received-SPF: pass client-ip=2607:f8b0:4864:20::434; envelope-from=richard.henderson@linaro.org; helo=mail-pf1-x434.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, T_SCC_BODY_TEXT_LINE=-0.01 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+importer=patchew.org@nongnu.org Sender: qemu-devel-bounces+importer=patchew.org@nongnu.org X-ZohoMail-DKIM: pass (identity @linaro.org) X-ZM-MESSAGEID: 1684853111843100001 Content-Type: text/plain; charset="utf-8" All uses replaced with TCGContext.addr_type. Signed-off-by: Richard Henderson --- tcg/sparc64/tcg-target.c.inc | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/tcg/sparc64/tcg-target.c.inc b/tcg/sparc64/tcg-target.c.inc index d2d0f604c2..48efd83817 100644 --- a/tcg/sparc64/tcg-target.c.inc +++ b/tcg/sparc64/tcg-target.c.inc @@ -1027,6 +1027,7 @@ static TCGLabelQemuLdst *prepare_host_addr(TCGContext= *s, HostAddress *h, TCGReg addr_reg, MemOpIdx oi, bool is_ld) { + TCGType addr_type =3D s->addr_type; TCGLabelQemuLdst *ldst =3D NULL; MemOp opc =3D get_memop(oi); MemOp s_bits =3D opc & MO_SIZE; @@ -1063,7 +1064,7 @@ static TCGLabelQemuLdst *prepare_host_addr(TCGContext= *s, HostAddress *h, tcg_out_arith(s, TCG_REG_T1, TCG_REG_T1, TCG_REG_T3, ARITH_ADD); =20 /* Load the tlb comparator and the addend. */ - tcg_out_ld(s, TCG_TYPE_TL, TCG_REG_T2, TCG_REG_T1, cmp_off); + tcg_out_ld(s, addr_type, TCG_REG_T2, TCG_REG_T1, cmp_off); tcg_out_ld(s, TCG_TYPE_PTR, TCG_REG_T1, TCG_REG_T1, add_off); h->base =3D TCG_REG_T1; =20 @@ -1084,7 +1085,7 @@ static TCGLabelQemuLdst *prepare_host_addr(TCGContext= *s, HostAddress *h, ldst->label_ptr[0] =3D s->code_ptr; =20 /* bne,pn %[xi]cc, label0 */ - cc =3D TARGET_LONG_BITS =3D=3D 64 ? BPCC_XCC : BPCC_ICC; + cc =3D addr_type =3D=3D TCG_TYPE_I32 ? BPCC_ICC : BPCC_XCC; tcg_out_bpcc0(s, COND_NE, BPCC_PN | cc, 0); #else /* @@ -1110,7 +1111,7 @@ static TCGLabelQemuLdst *prepare_host_addr(TCGContext= *s, HostAddress *h, #endif =20 /* If the guest address must be zero-extended, do in the delay slot. = */ - if (TARGET_LONG_BITS =3D=3D 32) { + if (addr_type =3D=3D TCG_TYPE_I32) { tcg_out_ext32u(s, TCG_REG_T2, addr_reg); h->index =3D TCG_REG_T2; } else { --=20 2.34.1