From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from simark.ca by simark.ca with LMTP id CRqiLPlspmlg1BEAWB0awg (envelope-from ) for ; Tue, 03 Mar 2026 00:09:13 -0500 Authentication-Results: simark.ca; dkim=pass (2048-bit key; unprotected) header.d=linaro.org header.i=@linaro.org header.a=rsa-sha256 header.s=google header.b=h2ZeZIRm; dkim-atps=neutral Received: by simark.ca (Postfix, from userid 112) id B11F41E0DD; Tue, 03 Mar 2026 00:09:13 -0500 (EST) 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,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 7CFED1E08D for ; Tue, 03 Mar 2026 00:09:12 -0500 (EST) Received: from vm01.sourceware.org (localhost [127.0.0.1]) by sourceware.org (Postfix) with ESMTP id 49CFF4BA23CC for ; Tue, 3 Mar 2026 05:09:11 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 49CFF4BA23CC Authentication-Results: sourceware.org; dkim=pass (2048-bit key, unprotected) header.d=linaro.org header.i=@linaro.org header.a=rsa-sha256 header.s=google header.b=h2ZeZIRm Received: from mail-dy1-x1329.google.com (mail-dy1-x1329.google.com [IPv6:2607:f8b0:4864:20::1329]) by sourceware.org (Postfix) with ESMTPS id 3F81A4BA2E0D for ; Tue, 3 Mar 2026 05:06:55 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 3F81A4BA2E0D Authentication-Results: sourceware.org; dmarc=pass (p=none dis=none) header.from=linaro.org Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=linaro.org ARC-Filter: OpenARC Filter v1.0.0 sourceware.org 3F81A4BA2E0D Authentication-Results: server2.sourceware.org; arc=none smtp.remote-ip=2607:f8b0:4864:20::1329 ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1772514415; cv=none; b=iEc6nMLT9dCxsmQS1svQEZGT4ywZusa9qlUCYOOaiX9cFTzDs7+/qwk2PlrIyPlscXoGph2+yeoFd6sWBb1zW55dtdeNkwIrKUmRPErAOH2U+IVhEVNMu9UpgASfR1g/06if6vuWCSBJlNKN8Yw392FbyQkC2yAvTLHRFRTzX7k= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1772514415; c=relaxed/simple; bh=ykB4+1PnhuC2WufZsz0RK0G/TA1zhGJBZ01Nc+PDQHA=; h=DKIM-Signature:From:To:Subject:Date:Message-ID:MIME-Version; b=MphoqrzA3EH4zN1c+Gbkn/6sgBwN1x8tFNUHB3hnmAaZ4/KL9pFLJ9s176u1nXEFCEaQx2bFI8yIqCdXIgwmDUVoDTxmgBsnbX3oFJeTQpLcrhm/9tPKC6KdNfBtDZKyuvB9nEZWBuUeaxtxD1gi3MhX4kVVJSozQOfF4gquvSw= ARC-Authentication-Results: i=1; server2.sourceware.org DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 3F81A4BA2E0D Received: by mail-dy1-x1329.google.com with SMTP id 5a478bee46e88-2be0e24d627so1704568eec.0 for ; Mon, 02 Mar 2026 21:06:55 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1772514414; x=1773119214; darn=sourceware.org; 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=iIK6XxI0mhy7oBVJNRm4Ug0LKCB6XdgDyDFW4rc7JXA=; b=h2ZeZIRmiy9sYYRqrZoUQixPxcMUZdKjKS6/DmxPNuXqpHKEKD8KkFZQYHUgOIFisR uZYEmINoYG+To8lb8wirv9+oHY1b4WkkIanU3Ea2vEZikhBx7K3DBzEToXe+/dHyBUPx fCUFd+G4AmHnkpEokmEd8kiZWCL7OfAaJbFo3ZImCXlnkd5ns8CUnlz8SRlBrSKOVqdP /I3PdsAru63CvrDsrSph8uoM1TGwFj1NSWU1DIpS6ohiYSjhR3rR/vVFGGiKknuslEGw TNOJ5dRqUwXmmHERGWgU9OkjUzqjz5qqpJ2NvoezBWFUwYPXQkM57YBrUz0B19uMIE70 CGcw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1772514414; x=1773119214; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-gg:x-gm-message-state:from :to:cc:subject:date:message-id:reply-to; bh=iIK6XxI0mhy7oBVJNRm4Ug0LKCB6XdgDyDFW4rc7JXA=; b=L1q07r+Ixb9i1L5CHPSMT3FtZlEObtjz8Qcg3/pUQ5ayHUJWwiWE9vQP3+VJANW/7y D3cpaYPYMMfWRRRMfBraaLIi0zR8ISSEZ2WOT+7q961UekhCtMKihRmZW5s60G/WIjOa bc1Cwgmvkz34lMZBTMMu6acDJU1A5mLHMOk23eqoi25Lv3QIIh+b75FxJuG5wcYbdh7z fXJ1gEYDFMPTdriQIolTmcjbVHMwU4RfKAfRtqW6QSWgdyU7qGMkW+wyQZ9PJSzAO/KE XGKTnb9cynROxJer9XZQb0fy0JaQF+eJ16cUduH4t85EkW6nEAWjV0bFFuHjooB2MGcs Hfng== X-Gm-Message-State: AOJu0Yzd4kp9zQ3NUKtH45vTz9EDYDqSzbC4A9nG+UoFviSfWTP6Gxsz YgTC3jlfcH4vKz8ZEbAZlwsCZBMv8n3VwOzpXbaiOA+3zJfz5VhaR61cfeiHUt1x+KmO2yrR+4V Z79qz+NM= X-Gm-Gg: ATEYQzzU321MyYHQNVnLAPcCdCMLIHgXgzuRU59AZiqnkNDMJuQ3kHvQq1hZYK6JMeu puHQbKW+cfGKLt78UlUVEs5LhoKWquLqBnuGN3Py8C8V228f/baguAoTQpTqBXSBG+Z19ZJGFnK 6bkRmz/aT8WGYhFpD3UTpxCA1EFW88vtMzySdcYP1pHwwaeRFtHylO/Ty7Tozr8sKVc5zrFH5Y8 HM/rDvGdNFJAvejI8f8/FfglucFwJ+01F5ekLkWJ5133/gkH04bB/OEDOuQrojrAudmwBrAzGNU cbbTpmcCifFxJKDCNo2gsv3rANRfM1+Mzu5h9++N37f4hsRSVTki1XH6okqbVuzjYd5W0d/S3QL XE8dhGksgC0BcnBgDsQjo8LxrIfVzYr7DEpaRMnbR1e5cnAee63YKynylTl+KTf3KffoglxCf0i Wq9JvTvuFLl/0sfnNHw5pRYIF86fVfp3255KJSBqR/vpce X-Received: by 2002:a05:693c:808a:b0:2be:6a7:d552 with SMTP id 5a478bee46e88-2be06a7d8ebmr2213212eec.17.1772514414004; Mon, 02 Mar 2026 21:06:54 -0800 (PST) Received: from localhost ([2804:14d:7e39:8083:f04c:42e3:5943:38f6]) by smtp.gmail.com with ESMTPSA id 5a478bee46e88-2be16992009sm4043947eec.3.2026.03.02.21.06.53 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 02 Mar 2026 21:06:53 -0800 (PST) From: Thiago Jung Bauermann To: gdb-patches@sourceware.org Cc: Chris Packham , Luis , Tom Tromey , Simon Marchi , sunilkumar.dora@windriver.com Subject: [PATCH v4 4/6] GDB: aarch64-linux: Reorganize SME-related definitions Date: Tue, 3 Mar 2026 02:06:39 -0300 Message-ID: <20260303050641.198127-5-thiago.bauermann@linaro.org> X-Mailer: git-send-email 2.53.0 In-Reply-To: <20260303050641.198127-1-thiago.bauermann@linaro.org> References: <20260303050641.198127-1-thiago.bauermann@linaro.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit 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 The HWCAP2_SME, HWCAP2_SME2 and HWCAP2_SME2P1 definitions should be in a file under gdb/nat/, so move them to aarch64-scalable-linux-ptrace.h. Also, I noticed that gdb/aarch64-linux-nat.c and gdbserver/linux-aarch64-low.cc don't need anything from the arch/aarch64-scalable-linux.h header, so make them not include it. --- gdb/aarch64-linux-nat.c | 1 - gdb/arch/aarch64-scalable-linux.h | 11 ----------- gdb/nat/aarch64-scalable-linux-ptrace.h | 11 +++++++++++ gdbserver/linux-aarch64-low.cc | 1 - 4 files changed, 11 insertions(+), 13 deletions(-) diff --git a/gdb/aarch64-linux-nat.c b/gdb/aarch64-linux-nat.c index d12e2ddcfb28..4b86ae9ebe16 100644 --- a/gdb/aarch64-linux-nat.c +++ b/gdb/aarch64-linux-nat.c @@ -55,7 +55,6 @@ #include "arch-utils.h" #include "arch/aarch64-gcs-linux.h" -#include "arch/aarch64-scalable-linux.h" #include diff --git a/gdb/arch/aarch64-scalable-linux.h b/gdb/arch/aarch64-scalable-linux.h index 813d06562055..e20d094e79d7 100644 --- a/gdb/arch/aarch64-scalable-linux.h +++ b/gdb/arch/aarch64-scalable-linux.h @@ -23,17 +23,6 @@ #include "gdbsupport/common-regcache.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 - /* Streaming mode enabled/disabled bit. */ #define SVCR_SM_BIT (1 << 0) /* ZA enabled/disabled bit. */ 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) diff --git a/gdbserver/linux-aarch64-low.cc b/gdbserver/linux-aarch64-low.cc index a00ee1556c80..c44f75167141 100644 --- a/gdbserver/linux-aarch64-low.cc +++ b/gdbserver/linux-aarch64-low.cc @@ -43,7 +43,6 @@ #include "arch/aarch64-gcs-linux.h" #include "arch/aarch64-mte-linux.h" #include "arch/aarch64-pauth-linux.h" -#include "arch/aarch64-scalable-linux.h" #include "linux-aarch32-tdesc.h" #include "linux-aarch64-tdesc.h" #include "nat/aarch64-fpmr-linux.h"