From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from simark.ca by simark.ca with LMTP id +VlNHxAmsGkjuCEAWB0awg (envelope-from ) for ; Tue, 10 Mar 2026 10:09:20 -0400 Authentication-Results: simark.ca; dkim=pass (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.a=rsa-sha256 header.s=20230601 header.b=AKLk3abZ; dkim-atps=neutral Received: by simark.ca (Postfix, from userid 112) id 789161E0DD; Tue, 10 Mar 2026 10:09:20 -0400 (EDT) X-Spam-Checker-Version: SpamAssassin 4.0.1 (2024-03-25) on simark.ca X-Spam-Level: X-Spam-Status: No, score=-2.4 required=5.0 tests=ARC_SIGNED,ARC_VALID,BAYES_00, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FROM,HTML_MESSAGE, MAILING_LIST_MULTI,RCVD_IN_DNSWL_MED, RCVD_IN_VALIDITY_CERTIFIED_BLOCKED,RCVD_IN_VALIDITY_RPBL_BLOCKED, RCVD_IN_VALIDITY_SAFE_BLOCKED autolearn=ham autolearn_force=no version=4.0.1 Received: from vm01.sourceware.org (vm01.sourceware.org [38.145.34.32]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange x25519 server-signature ECDSA (prime256v1) server-digest SHA256) (No client certificate requested) by simark.ca (Postfix) with ESMTPS id C496E1E08D for ; Tue, 10 Mar 2026 10:09:19 -0400 (EDT) Received: from vm01.sourceware.org (localhost [127.0.0.1]) by sourceware.org (Postfix) with ESMTP id 73D5F4BA23D0 for ; Tue, 10 Mar 2026 14:09:18 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 73D5F4BA23D0 Authentication-Results: sourceware.org; dkim=pass (2048-bit key, unprotected) header.d=gmail.com header.i=@gmail.com header.a=rsa-sha256 header.s=20230601 header.b=AKLk3abZ Received: from mail-oa1-x35.google.com (mail-oa1-x35.google.com [IPv6:2001:4860:4864:20::35]) by sourceware.org (Postfix) with ESMTPS id 85D394B9DB4E for ; Tue, 10 Mar 2026 14:07:58 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 85D394B9DB4E Authentication-Results: sourceware.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=gmail.com ARC-Filter: OpenARC Filter v1.0.0 sourceware.org 85D394B9DB4E Authentication-Results: server2.sourceware.org; arc=pass smtp.remote-ip=2001:4860:4864:20::35 ARC-Seal: i=2; a=rsa-sha256; d=sourceware.org; s=key; t=1773151678; cv=pass; b=n/xjByeOXrgpcJnXMCmpRX/CdTDL0hrjFTHiIs3SkkL/Y0a1jcL7FDb0eaUYUhsTu+Wg87LgTssT2yPNGni/5mxZGPO+yiD4wJan/a23SnS2xqGvgs7caFQXT9BJkBXNVtB94gDWhGSjIRerCAEXLvqI+Rs268Zy1juZcK4Z+i0= ARC-Message-Signature: i=2; a=rsa-sha256; d=sourceware.org; s=key; t=1773151678; c=relaxed/simple; bh=vZn61z2WC1BexBk80wckP2qZ0/HjhOKtn1DeJTXVjSQ=; h=DKIM-Signature:MIME-Version:From:Date:Message-ID:Subject:To; b=DbJWa/oF+0I5DigJn5vQ8ecCZWsJ0EasqHV2v52izJ2ZmW+RipWcduJKuukJxZtQB+UVGxPvxdYOuyw/gAe25/FBTG0xNZq32qvL8+JQD3F27Ya0Vzc5DtAWwfwGfq9s8aCqoZtUh5wi5YZQCflZlLjNrxnfhTJ10N8JdFGtGbM= ARC-Authentication-Results: i=2; server2.sourceware.org DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 85D394B9DB4E Received: by mail-oa1-x35.google.com with SMTP id 586e51a60fabf-409de4132b5so5237042fac.1 for ; Tue, 10 Mar 2026 07:07:58 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1773151678; cv=none; d=google.com; s=arc-20240605; b=aBF+yWDVvsiEz9quNO6uKSK66WZ0qQgufrJdQtI3LWqYmz4ATpLMHx/fsMfe7qFaBX /DngFt74urZiqhbm0bIrDfJUP/t0F5dNjBmCR8TFcOWZsXD6mIlr9QLOsmkQJ/kfVKg4 aeegzIOgK46IB07LJdcXTKOFKHKKOz39BB5oub3U2EJ0bMHcS6DUFXDOcLfJsv6OZ03O 0nY91UG8Dnz0FWe3EUCi64DrHTvhKDN9Sp/1Zfjz/+48FwPvHNSCuE2MzVYh6s+3DSiB pNMUe8nOIXR2F8v/60NocGYdIqYKSc875u/5WlXwlCwciVCKOU/I2OySkY9sTmJLcpwZ HFzQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20240605; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:dkim-signature; bh=r8tE4hdzYxIjb9zDYUfihn4fmQnotga8E15lYBBpF50=; fh=fjfPYQfMhWEU5kxyRFb+iB2y8yPz633xsUnVQoxbtAE=; b=CfvD5luVeeO7vQMgsAiHNP2CY2hd5pc37boHt+vreC6p3RwYKt4F2BhP6krVszNXo0 HmZ49sRsGI8yoCRTEJe4hnnCW3SwULWVaBRIfHW7+joQBXozmNfjeTJrBn6QkMSn/+eC r6tNVEG6a3LDU/4DfHAECvQ7kgikvWHlBSz0lb28/IrbeJyceT5BH6yEeMlGVFZHjDXl jPtbKoEDTZv70YtTVDkSTr3phZtPhHrUBrzelhJ+0HkzlILrprrFcMslJUB8vcOt9DMr hKgOh+v7xiXjFE5gqSQofm70rIXgrD86QtgL0UeC9u7TDJJUGXzQ7AwJIosy0lIKQ8Af 9c8A==; darn=sourceware.org ARC-Authentication-Results: i=1; mx.google.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1773151678; x=1773756478; darn=sourceware.org; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=r8tE4hdzYxIjb9zDYUfihn4fmQnotga8E15lYBBpF50=; b=AKLk3abZLBVtszHM8oM3Aw8NC0Tvof6LncrkSTNPfQeyF+ye66FxF7imkYKzqZGL1n fq6Fps3grzhrwSWZWJVvsjPJVPLl8IoM6k3dxQfpbi74uaebieYWUKTEJv+APrtjp7dl W/eRg0qVQYi24AGRnS/XuaC8EgorNq5Igz84Ar+hNaSMbCqu5olSh0mIwBOl/5Bx12Ti U2hxJVVTWSaGezvTnoRH4EepJkuZgC/GsggFf+DADoNIgi10ymDAhW6t86eZvtU1PexA 2ChJ9hPeGSgg/OFjuAUCKRAh9VfNsfHzZf2mglEX46bsBPTE0TMU06BhYMtTd/6hSLAS WS+Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1773151678; x=1773756478; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-gg:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=r8tE4hdzYxIjb9zDYUfihn4fmQnotga8E15lYBBpF50=; b=U6Mfq9hGnQf7WpIwNJK/6xRUoen4gM79xbzcrsPzll7sRD5XGR/htxPMcWWjcquZ6Y fJzUvJvaSlzdVLJBR4mSdk7E6yLaE232squh/Hi5pa8gNJyfib7290SG1gmftRX+42k/ p94uvGPEskkpDM7ZvK6X/bvAnsY3ouL0c5Ez9ryVLXQtxDfBSy38sqpT4stDtzUAdtus eYy2Lso0qTPti8B6mPl8Osyy2mBajntZq/dS/8AT288ZwSQ9xfF1y53tKMA8xMSI4qjF QdbTUccqFcztGct2BWzclHAfP4L6J/2JCSMeZgaA0XbcHkBOnWr5V3AdoRBeIiVLiL6f 5t4g== X-Gm-Message-State: AOJu0YxhY4q6wz7/h01Zl/XKgAkfYM5kiiiIcLneuPukkFmvZCyFtPnL +ZbLE3IUsvTSbYkTaI4ObM2kpDrOo9KjW5GkrjonWkfL0sIzz4S6J20Zkhj5o4Cm7LjB9jxLbUI V5cwsCMAYN53cullsJhZ2lwhLQoKg7h4= X-Gm-Gg: ATEYQzybchAyNe8NeUOXXX3TscQYO0ERpTl3Mx4JZwRtro8RBZ1zsdMMpYkH+cyqwMD 4SgbiOX+ryokEUAPn3tEnyGL2yjuc57wnobgnEwFwK21pxwnqLnKwY1EanWWbhbQI1ZSjSs6NeM MfccuXMxyxyie2QxclmszN8ObN8TPQH0MDgJInTfWR4cTQTHQxS+MwRoWdllgWGhnjyuf9akP5v blGPaU8GX39Yy+4SQUDs4aKGWIPe+ddMg8g7/L0fM3g/+AdZDLmoUfx92afuIBdyofaAn6BbwR8 BCdWKLNCPXSVbeF53NbCEb/AaXxSHsXPSjihXp4= X-Received: by 2002:a05:6871:69ba:b0:417:3421:13ff with SMTP id 586e51a60fabf-4173421a27cmr4241777fac.29.1773151677602; Tue, 10 Mar 2026 07:07:57 -0700 (PDT) MIME-Version: 1.0 References: <20260303050641.198127-1-thiago.bauermann@linaro.org> <20260303050641.198127-5-thiago.bauermann@linaro.org> <87y0k8b4x6.fsf@linaro.org> In-Reply-To: <87y0k8b4x6.fsf@linaro.org> From: Luis Date: Tue, 10 Mar 2026 11:07:46 -0300 X-Gm-Features: AaiRm51jW2O8mlUcfgxRCWDBHDCiXGcirHL3tqiXe1NEBzX32_1EgG6RwlXiptI Message-ID: Subject: Re: [PATCH v4 4/6] GDB: aarch64-linux: Reorganize SME-related definitions To: Thiago Jung Bauermann Cc: gdb-patches@sourceware.org, Chris Packham , Tom Tromey , Simon Marchi , sunilkumar.dora@windriver.com Content-Type: multipart/alternative; boundary="000000000000e05ef3064cac0b73" X-BeenThere: gdb-patches@sourceware.org X-Mailman-Version: 2.1.30 Precedence: list List-Id: Gdb-patches mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: gdb-patches-bounces~public-inbox=simark.ca@sourceware.org --000000000000e05ef3064cac0b73 Content-Type: text/plain; charset="UTF-8" Thanks. Approved-By: Luis Machado On Wed, Mar 4, 2026, 01:21 Thiago Jung Bauermann < thiago.bauermann@linaro.org> wrote: > Thiago Jung Bauermann writes: > > > diff --git a/gdb/nat/aarch64-scalable-linux-ptrace.h > b/gdb/nat/aarch64-scalable-linux-ptrace.h > > index 453f19dfe8d9..f3424baf7092 100644 > > --- a/gdb/nat/aarch64-scalable-linux-ptrace.h > > +++ b/gdb/nat/aarch64-scalable-linux-ptrace.h > > @@ -34,6 +34,17 @@ > > #include > > #include "aarch64-scalable-linux-sigcontext.h" > > > > +/* Feature check for Scalable Matrix Extension. */ > > +#ifndef HWCAP2_SME > > +#define HWCAP2_SME (1 << 23) > > +#endif > > + > > +/* Feature check for Scalable Matrix Extension 2. */ > > +#ifndef HWCAP2_SME2 > > +#define HWCAP2_SME2 (1UL << 37) > > +#define HWCAP2_SME2P1 (1UL << 38) > > +#endif > > + > > /* Indicates whether a SVE ptrace header is followed by SVE registers > or a > > fpsimd structure. */ > > #define HAS_SVE_STATE(header) ((header).flags & SVE_PT_REGS_SVE) > > As with the other patches, I amended this one locally with: > > diff --git a/gdb/nat/aarch64-scalable-linux-ptrace.h > b/gdb/nat/aarch64-scalable-linux-ptrace.h > index f3424baf7092..357154751508 100644 > --- a/gdb/nat/aarch64-scalable-linux-ptrace.h > +++ b/gdb/nat/aarch64-scalable-linux-ptrace.h > @@ -30,6 +30,7 @@ > these very same symbols. When that's the case, build errors will > result when is included before . */ > #include > +#include > #include > #include > #include "aarch64-scalable-linux-sigcontext.h" > > -- > Thiago > --000000000000e05ef3064cac0b73 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Thanks.

Approved-By: Luis Machado <luis.machado.foss@gmail.com>

On Wed, Mar 4,= 2026, 01:21 Thiago Jung Bauermann <thiago.bauermann@linaro.org> wrote:
Thiago Jung Bauermann <thiago.bauermann@lina= ro.org> writes:

> diff --git a/gdb/nat/aarch64-scalable-linux-ptrace.h b/gdb/nat/aarch64= -scalable-linux-ptrace.h
> index 453f19dfe8d9..f3424baf7092 100644
> --- a/gdb/nat/aarch64-scalable-linux-ptrace.h
> +++ b/gdb/nat/aarch64-scalable-linux-ptrace.h
> @@ -34,6 +34,17 @@
>=C2=A0 #include <stdarg.h>
>=C2=A0 #include "aarch64-scalable-linux-sigcontext.h"
>=C2=A0
> +/* Feature check for Scalable Matrix Extension.=C2=A0 */
> +#ifndef HWCAP2_SME
> +#define HWCAP2_SME (1 << 23)
> +#endif
> +
> +/* Feature check for Scalable Matrix Extension 2.=C2=A0 */
> +#ifndef HWCAP2_SME2
> +#define HWCAP2_SME2=C2=A0 =C2=A0(1UL << 37)
> +#define HWCAP2_SME2P1 (1UL << 38)
> +#endif
> +
>=C2=A0 /* Indicates whether a SVE ptrace header is followed by SVE regi= sters or a
>=C2=A0 =C2=A0 =C2=A0fpsimd structure.=C2=A0 */
>=C2=A0 #define HAS_SVE_STATE(header) ((header).flags & SVE_PT_REGS_= SVE)

As with the other patches, I amended this one locally with:

diff --git a/gdb/nat/aarch64-scalable-linux-ptrace.h b/gdb/nat/aarch64-scal= able-linux-ptrace.h
index f3424baf7092..357154751508 100644
--- a/gdb/nat/aarch64-scalable-linux-ptrace.h
+++ b/gdb/nat/aarch64-scalable-linux-ptrace.h
@@ -30,6 +30,7 @@
=C2=A0 =C2=A0 these very same symbols.=C2=A0 When that's the case, buil= d errors will
=C2=A0 =C2=A0 result when <asm/ptrace.h> is included before <sys/p= trace.h>.=C2=A0 */
=C2=A0#include <sys/ptrace.h>
+#include <asm/hwcap.h>
=C2=A0#include <asm/ptrace.h>
=C2=A0#include <stdarg.h>
=C2=A0#include "aarch64-scalable-linux-sigcontext.h"

--
Thiago
--000000000000e05ef3064cac0b73--