From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from EUR04-HE1-obe.outbound.protection.outlook.com (mail-he1eur04on2081.outbound.protection.outlook.com [40.107.7.81]) by sourceware.org (Postfix) with ESMTPS id 57B8538582A1 for ; Thu, 23 Feb 2023 09:52:59 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 57B8538582A1 Authentication-Results: sourceware.org; dmarc=pass (p=none dis=none) header.from=arm.com Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=arm.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=armh.onmicrosoft.com; s=selector2-armh-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=bsz0UhIAAc6iHk1k+RrWzyjUU6ofQNWntPOWcBnmDMw=; b=jBDYQPGhH/sj7rkh6iVqugjyvcYHtV9aTRgSFMHCJQSw5w7loapXEaYgd93bN3FoQb3A9QU9lWck6iIY+lEHUP4mRi7RHofXuvQuQqydtBrxIziHSPRTQNGyDd9KlcS5ctSO7w2aeXs33ew3+XWjjRyKv4KWtebfR6iyMyahcPw= Received: from AM6P194CA0078.EURP194.PROD.OUTLOOK.COM (2603:10a6:209:8f::19) by VI1PR08MB10300.eurprd08.prod.outlook.com (2603:10a6:800:1bd::9) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6111.19; Thu, 23 Feb 2023 09:52:54 +0000 Received: from AM7EUR03FT041.eop-EUR03.prod.protection.outlook.com (2603:10a6:209:8f:cafe::4f) by AM6P194CA0078.outlook.office365.com (2603:10a6:209:8f::19) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6134.21 via Frontend Transport; Thu, 23 Feb 2023 09:52:54 +0000 X-MS-Exchange-Authentication-Results: spf=pass (sender IP is 63.35.35.123) smtp.mailfrom=arm.com; dkim=pass (signature was verified) header.d=armh.onmicrosoft.com;dmarc=pass action=none header.from=arm.com; Received-SPF: Pass (protection.outlook.com: domain of arm.com designates 63.35.35.123 as permitted sender) receiver=protection.outlook.com; client-ip=63.35.35.123; helo=64aa7808-outbound-1.mta.getcheckrecipient.com; pr=C Received: from 64aa7808-outbound-1.mta.getcheckrecipient.com (63.35.35.123) by AM7EUR03FT041.mail.protection.outlook.com (100.127.140.233) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6134.20 via Frontend Transport; Thu, 23 Feb 2023 09:52:53 +0000 Received: ("Tessian outbound b1d3ffe56e73:v132"); Thu, 23 Feb 2023 09:52:53 +0000 X-CheckRecipientChecked: true X-CR-MTA-CID: 539546f3eacacc19 X-CR-MTA-TID: 64aa7808 Received: from b9924fd7ddaf.1 by 64aa7808-outbound-1.mta.getcheckrecipient.com id 6AF4D108-DA23-4286-8526-7B9209E5E0EA.1; Thu, 23 Feb 2023 09:52:47 +0000 Received: from EUR03-AM7-obe.outbound.protection.outlook.com by 64aa7808-outbound-1.mta.getcheckrecipient.com with ESMTPS id b9924fd7ddaf.1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384); Thu, 23 Feb 2023 09:52:47 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=gVOv4HlfzRFLMN8jsoJXWPqmwltlh86MHYuETlwgfiXsasyeS1wSBJljLIhiHpT9U78mwkT0DY16RbOlPvldBp5aiNq//YPv7wf+lF9FGZTMpMWxmOdyRj8TzaGNP9z+cJ1LucCs3ItP8dhMQmqOCewkXRl2JLfeuin3hmFDNz3MWfZtilYpyCwoCZMiFeNv9YDo9vZQncOfmIHrbME2rLJ5PmKcD3xSN9Y4MDJmmEmavR6b2q/ipbbS/eW5aeJvNtlfs66qUtPyp7pA5HgEpiRpKrUncAec1HaGjL68Ht3/XoYhN3bPrgTq0YGhz/2oY4bF/HnPCTx3z6W6ncFYJQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=bsz0UhIAAc6iHk1k+RrWzyjUU6ofQNWntPOWcBnmDMw=; b=FtlukIE0okutPRWER6gQZoJ3f0+PbtQeONE1B4PmudUEr/wLJpxNA3cRjsAOlDKmYUtJd29O1Q6Wfuf43VVJkCI6/5OUUdWP2BHgrW99joFNgyl+QCXPUjPcUAq/fa/sFY/Uh/9Kx92KB9DNSt7H+wKntAmoo5rU3yBjgTX2AFNoExjmfKjzZhAMiEHK3mONdzbgp+F1lyQdXobTBhp8T0b/OAochNSMXv1nfY88DEe/B7o7Ud3hA8exPcGRcgzToQlTnGGvaTObDqYKX9sOIwStixnGyMVWpGVuEzkH2w9uGvpVpz0KMQybammOZnRV26zTQu8feCAoBzlpW8lr2g== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass (sender ip is 40.67.248.234) smtp.rcpttodomain=sourceware.org smtp.mailfrom=arm.com; dmarc=pass (p=none sp=none pct=100) action=none header.from=arm.com; dkim=none (message not signed); arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=armh.onmicrosoft.com; s=selector2-armh-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=bsz0UhIAAc6iHk1k+RrWzyjUU6ofQNWntPOWcBnmDMw=; b=jBDYQPGhH/sj7rkh6iVqugjyvcYHtV9aTRgSFMHCJQSw5w7loapXEaYgd93bN3FoQb3A9QU9lWck6iIY+lEHUP4mRi7RHofXuvQuQqydtBrxIziHSPRTQNGyDd9KlcS5ctSO7w2aeXs33ew3+XWjjRyKv4KWtebfR6iyMyahcPw= Received: from AS9PR0301CA0015.eurprd03.prod.outlook.com (2603:10a6:20b:468::23) by AS4PR08MB7505.eurprd08.prod.outlook.com (2603:10a6:20b:4f7::15) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6134.18; Thu, 23 Feb 2023 09:52:44 +0000 Received: from AM7EUR03FT040.eop-EUR03.prod.protection.outlook.com (2603:10a6:20b:468:cafe::72) by AS9PR0301CA0015.outlook.office365.com (2603:10a6:20b:468::23) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6134.21 via Frontend Transport; Thu, 23 Feb 2023 09:52:44 +0000 X-MS-Exchange-Authentication-Results: spf=pass (sender IP is 40.67.248.234) smtp.mailfrom=arm.com; dkim=none (message not signed) header.d=none;dmarc=pass action=none header.from=arm.com; Received-SPF: Pass (protection.outlook.com: domain of arm.com designates 40.67.248.234 as permitted sender) receiver=protection.outlook.com; client-ip=40.67.248.234; helo=nebula.arm.com; pr=C Received: from nebula.arm.com (40.67.248.234) by AM7EUR03FT040.mail.protection.outlook.com (100.127.140.128) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.20.6134.20 via Frontend Transport; Thu, 23 Feb 2023 09:52:44 +0000 Received: from AZ-NEU-EX04.Arm.com (10.251.24.32) by AZ-NEU-EX03.Arm.com (10.251.24.31) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.17; Thu, 23 Feb 2023 09:52:43 +0000 Received: from e129171.arm.com (10.57.90.34) by mail.arm.com (10.251.24.32) with Microsoft SMTP Server id 15.1.2507.17 via Frontend Transport; Thu, 23 Feb 2023 09:52:42 +0000 From: Luis Machado To: CC: Subject: [PATCH] [gdb/doc] aarch64: Expand documentation of XML features Date: Thu, 23 Feb 2023 09:52:44 +0000 Message-ID: <20230223095244.1813332-1-luis.machado@arm.com> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain X-EOPAttributedMessage: 1 X-MS-TrafficTypeDiagnostic: AM7EUR03FT040:EE_|AS4PR08MB7505:EE_|AM7EUR03FT041:EE_|VI1PR08MB10300:EE_ X-MS-Office365-Filtering-Correlation-Id: c7ae0987-3ce7-496c-e585-08db1583bbe4 x-checkrecipientrouted: true NoDisclaimer: true X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam-Untrusted: BCL:0; X-Microsoft-Antispam-Message-Info-Original: yt35Wj8l0GiUwFuqmRoDt+ECSu9v4IAhiSfkyj4+BU46+Ox1radjmVl22yNZKB7mEX0Hd47RHvf++cTuGrEwWfCXK384Q1SU9/Y5j8hhG19Xg4f8UMputZhNoAJ6bBDtQKVARFJpUiKRf0A2iXhpBVDI8jUN/mKPBw7um1S6NpZm7Cjj6i5o1y7g7aWOQV1qmOGLvekaJsMZNUJFGNyqh4lfRMOa4DgSkGs3Rn7G+x5WO4blzH6v5aCatSoKINTZXsJE2FwpwXvx6mJCsjRIgmAsI7jDDS7WGE60rrfqxNZjgv79duk6fiG05VYjp5LslQkV6TAVsEfdvxrUtwrjuDEnZ2tj8yO5a40FCZ7VGDYG6ohwfPb2ouiYYvufnCORncltqZt5n3bEd0EAKxp0+QSQI5Mztvpjp8gECKLnBBa/d7jSZ2F4UOL7MaPQRY6RmYmFnRkgyO6DpoK5mahh0bkAblljXp27Udz2kRNNCeWLCaT0lipUOtCuw249n9uh3p4N3xRd/zEqMvRw/ovD2X05jYhDXvtW9i2qCSOQxuzJBGoftHj2ksjbkb52xf+xU/0Vx/zURm7tG9/VjaaGS1jVuMsVdmyPuAImgV+UWAfYfZbJR59m+FNgWShW4Fnz1ZRJrreuEGUQalC7TTBFvQSze0P/H6DpTw4UadVqCioLEArqInHQbVn0i10u9LezllU10B1+JtSWm90aq8VV5Y3ypoSYEgJqvjn/synfeEw= X-Forefront-Antispam-Report-Untrusted: CIP:40.67.248.234;CTRY:IE;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:nebula.arm.com;PTR:InfoDomainNonexistent;CAT:NONE;SFS:(13230025)(4636009)(346002)(39860400002)(396003)(376002)(136003)(451199018)(46966006)(40470700004)(36840700001)(2616005)(7696005)(36860700001)(336012)(1076003)(186003)(26005)(5660300002)(426003)(47076005)(478600001)(316002)(83380400001)(356005)(4326008)(82310400005)(41300700001)(70586007)(40460700003)(8676002)(6916009)(8936002)(40480700001)(70206006)(36756003)(44832011)(81166007)(86362001)(82740400003)(2906002)(36900700001);DIR:OUT;SFP:1101; X-MS-Exchange-Transport-CrossTenantHeadersStamped: AS4PR08MB7505 X-MS-Exchange-Transport-CrossTenantHeadersStripped: AM7EUR03FT041.eop-EUR03.prod.protection.outlook.com X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id-Prvs: 586b5443-0e56-4b5c-0a8a-08db1583b627 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: 0BKkEFrswAX+nzsvSv0yf3XM1xx014Xtk0UFOLZoa1PE2I+yvFrVJ96q16YldoqlFIfM0qIK5bWce0GroxJ0QKkJRsbs4VTuMdOlMeLCRWjER3qozLxG9qLKsog64LcEC5whB0QrgJnX0/jEO1BovhFhg8LVAEiSftxYWWrsdhbSnSYg5VCt0mBvegiYhN4cOalgLedQ61EoxdSnKvQVty/GaOXh4tVw5rnXVAjJShATDSpSCtwlz4RY51woMQfGyajRS/eE+lqtVrAw+Z4FQBJH2b0wAwobkcJDwQ4vQH02BGio9lG7j9g52YOt9I5yJ5FgIPDattvIYA9cYjYJWxQGjN5svEn+76+Ld+gz9oXtlmfdVAgmDSXZCvrlGq8Vc6NAG/2fdUJaOuOElQacD7Orkkq/POYkMdnp1U9YvMvfUMhUwaPGBTnMOc307QHaokPmQIB5s86h8vuNd/XJthcO1fnDYWy6azPyi9m5ocWhVPlqhJrK38+UA6i7DvOO/6YbRXylOLbyR72bUcpZZL3SyoA/79XXU8GwBkE9D5DTX1bITFte2kDw/sXUXz2UKPV8rqWFoeoq9e3s/W56laEEF5yhthBqa43btWphh/uyY0Ehsb7U98CU0T/8mbUS65uAOyppo6uUnVVI8WdeaJU9OyWZRuPTb89jIMA9ZMulZ4kodJFCiUU0r/pi+muufdCsKEGanEvCp8AHAuOXUw== X-Forefront-Antispam-Report: CIP:63.35.35.123;CTRY:IE;LANG:en;SCL:1;SRV:;IPV:CAL;SFV:NSPM;H:64aa7808-outbound-1.mta.getcheckrecipient.com;PTR:ec2-63-35-35-123.eu-west-1.compute.amazonaws.com;CAT:NONE;SFS:(13230025)(4636009)(376002)(346002)(396003)(39860400002)(136003)(451199018)(46966006)(36840700001)(40470700004)(7696005)(336012)(47076005)(2616005)(426003)(186003)(1076003)(4326008)(8676002)(70206006)(6916009)(70586007)(316002)(41300700001)(8936002)(5660300002)(26005)(2906002)(44832011)(81166007)(36860700001)(82740400003)(478600001)(36756003)(40460700003)(82310400005)(86362001)(40480700001)(83380400001);DIR:OUT;SFP:1101; X-OriginatorOrg: arm.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 23 Feb 2023 09:52:53.9515 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: c7ae0987-3ce7-496c-e585-08db1583bbe4 X-MS-Exchange-CrossTenant-Id: f34e5979-57d9-4aaa-ad4d-b122a662184d X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=f34e5979-57d9-4aaa-ad4d-b122a662184d;Ip=[63.35.35.123];Helo=[64aa7808-outbound-1.mta.getcheckrecipient.com] X-MS-Exchange-CrossTenant-AuthSource: AM7EUR03FT041.eop-EUR03.prod.protection.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: VI1PR08MB10300 X-Spam-Status: No, score=-12.0 required=5.0 tests=BAYES_00,DKIM_SIGNED,DKIM_VALID,FORGED_SPF_HELO,GIT_PATCH_0,KAM_DMARC_NONE,RCVD_IN_DNSWL_NONE,RCVD_IN_MSPIKE_H2,SPF_HELO_PASS,SPF_NONE,TXREP,UNPARSEABLE_RELAY autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on server2.sourceware.org List-Id: Similar to the arm target documentation situation, the documentation of the XML features for AArch64 targets is rather brief. I have received the same feedback that what gdb carries in the documentation is quite unclear from the perspective of what debugging servers should define in the XML features, how and what the outcome is in gdb. This patch attempts to clarify a bit more what all the possible features are. --- gdb/doc/gdb.texinfo | 199 ++++++++++++++++++++++++++++++++++++++++++-- 1 file changed, 191 insertions(+), 8 deletions(-) diff --git a/gdb/doc/gdb.texinfo b/gdb/doc/gdb.texinfo index 3c3a9f98de2..50bc6f733e2 100644 --- a/gdb/doc/gdb.texinfo +++ b/gdb/doc/gdb.texinfo @@ -47761,20 +47761,203 @@ registers using the capitalization used in the description. @subsection AArch64 Features @cindex target descriptions, AArch64 features +@subsubsection AArch64 core registers feature + The @samp{org.gnu.gdb.aarch64.core} feature is required for AArch64 -targets. It should contain registers @samp{x0} through @samp{x30}, -@samp{sp}, @samp{pc}, and @samp{cpsr}. +targets. It must contain the following: + +@itemize @minus +@item +@samp{x0} through @samp{x30}, with size of 64-bit. Register @samp{x30} is +also known as the link register @samp{lr}. +@item +@samp{sp}, the stack pointer register or @samp{x31}. It is 64-bit in size and +has a type of @samp{data_ptr}. +@item +@samp{pc}, the program counter register. It is 64-bit in size and has a type +of @samp{code_ptr}. +@item +@samp{cpsr}, the current program status register. It is 32-bit in size +and has a custom flags type. +@end itemize + +The @samp{cpsr} flags type gets updated based on new architectural +features. The current layout can be found in the aarch64-core.xml file. + +Extra registers are allowed in this feature, but they will not affect +@value{GDBN}. + +@subsubsection AArch64 floating-point registers feature The @samp{org.gnu.gdb.aarch64.fpu} feature is optional. If present, -it should contain registers @samp{v0} through @samp{v31}, @samp{fpsr}, -and @samp{fpcr}. +it must contain the following registers: + +@itemize @minus +@item +@samp{v0} through @samp{v31}, the vector registers with size of 128-bit. The +type is a custom vector type. +@item +@samp{fpsr}, the floating-point status register. It is 32-bit in size and has +a custom flags type. +@item +@samp{fpcr}, the floating-point control register. It is 32-bit in size and has +a custom flags type. +@end itemize + +The types for the vector registers, @samp{fpsr} and @samp{fpcr} registers can +be found in the aarch64-fpu.xml file. + +Extra registers are allowed in this feature, but they will not affect +@value{GDBN}. + +@subsubsection AArch64 SVE registers feature The @samp{org.gnu.gdb.aarch64.sve} feature is optional. If present, -it should contain registers @samp{z0} through @samp{z31}, @samp{p0} -through @samp{p15}, @samp{ffr} and @samp{vg}. +it means the target supports the Scalable Vector Extension and must contain +the following registers: + +@itemize @minus +@item +@samp{z0} through @samp{z31}, the scalable vector registers. Their sizes are +variable and a multiple of 128-bit up to a maximum of 2048-bit. Their type is +a custom union type that helps visualize different sizes of sub-vectors. +@item +@samp{fpsr}, the floating-point status register. It is 32-bit in size and has +a custom flags type. +@item +@samp{fpcr}, the floating-point control register. It is 32-bit in size and has +a custom flags type. +@item +@samp{p0} through @samp{p15}, the predicate registers. Their sizes are +variable, based on the current vector length, and a multiple of 16-bit. Their +types are a custom union to help visualize sub-elements. +@item +@samp{ffr}, the First Fault register. It has a variable size based on the +current vector length and is a multiple of 16-bit. The type is the same as +the predicate registers. +@item +@samp{vg}, the vector granule. It represents the number of 64-bit chunks in +a @samp{z} register. It is closely associated with the current vector +length. It has a type of @samp{int}. +@end itemize + +When @value{GDBN} sees the SVE feature, it will assume the Scalable Vector +Extension is supported, and will adjust the sizes of the @samp{z}, @samp{p} +and @samp{ffr} registers accordingly, based on the value of @samp{vg}. -The @samp{org.gnu.gdb.aarch64.pauth} feature is optional. If present, -it should contain registers @samp{pauth_dmask} and @samp{pauth_cmask}. +@value{GDBN} will also create pseudo-registers equivalent to the @samp{v} +vector registers from the @samp{org.gnu.gdb.aarch64.fpu} feature. + +The first 128 bits of the @samp{z} registers overlap the 128 bits of the +@samp{v} registers, so changing one will trigger a change to the other. + +For the types of the @samp{z}, @samp{p} and @samp{ffr} registers, please +check the aarch64-sve.c file. No XML file is available for this feature +because it is dynamically generated based on the current vector length. + +Extra registers are allowed in this feature, but they will not affect +@value{GDBN}. + +@subsubsection AArch64 Pointer Authentication registers feature + +The @samp{org.gnu.gdb.aarch64.pauth} optional feature was introduced so +@value{GDBN} could detect support for the Pointer Authentication +extension. If present, it must contain one of two possible register sets. + +Pointer Authentication masks for user-mode: + +@itemize @minus +@item +@samp{pauth_dmask}, the user-mode pointer authentication mask for data +pointers. It is 64-bit in size. +@item +@samp{pauth_cmask}, the user-mode pointer authentication mask for code +pointers. It is 64-bit in size. +@end itemize + +Pointer Authentication masks for user-mode and kernel-mode: + +@itemize @minus +@item +@samp{pauth_dmask}, the user-mode pointer authentication mask for data +pointers. It is 64-bit in size. +@item +@samp{pauth_cmask}, the user-mode pointer authentication mask for code +pointers. It is 64-bit in size. +@item +@samp{pauth_dmask_high}, the kernel-mode pointer authentication mask for +data pointers. It is 64-bit in size. +@item +@samp{pauth_cmask_high}, the kernel-mode pointer authentication mask for +code pointers. It is 64-bit in size. +@end itemize + +If @value{GDBN} sees any of the two sets of registers in this feature, it will +assume the target is capable of signing pointers. If so, @value{GDBN} will +decorate backtraces with a @samp{[PAC]} marker alongside a function that +has a signed link register value that needs to be unmasked/decoded. + +@value{GDBN} will also use the masks to remove non-address bits from pointers. + +Extra registers are allowed in this feature, but they will not affect +@value{GDBN}. + +@subsubsection AArch64 TLS registers feature + +The @samp{org.gnu.gdb.aarch64.tls} optional feature was introduced to expose +the TLS registers to @value{GDBN}. If present, it must contain either one +of the following register sets. + +Only @samp{tpidr}: + +@itemize @minus +@item +@samp{tpidr}, the software thread id register. It is 64-bit in size and has a +type of @samp{data_ptr}. +@end itemize + +Both @samp{tpidr} and @samp{tpidr2}. + +@itemize @minus +@item +@samp{tpidr}, the software thread id register. It is 64-bit in size and has a +type of @samp{data_ptr}. +@item +@samp{tpidr2}, the second software thread id register. It is 64-bit in size +and has a type of @samp{data_ptr}. It may be used in the future alongside +the Scalable Matrix Extension for a lazy restore scheme. +@end itemize + +If @value{GDBN} sees this feature, it will attempt to find one of the +variations of the register set. If @samp{tpidr2} is available, +@value{GDBN} may act on it to display additional data in the future. + +There is no XML for this feature as the presence of @samp{tpidr2} is +determined dynamically at runtime. + +Extra registers are allowed in this feature, but they will not affect +@value{GDBN}. + +@subsubsection AArch64 MTE registers feature + +The @samp{org.gnu.gdb.aarch64.mte} optional feature was introduced so +@value{GDBN} could detect support for the Memory Tagging Extension and +control memory tagging settings. If present, this feature must have the +following register: + +@itemize @minus +@item +@samp{tag_ctl}, the tag control register. It is 64-bit in size and has a type +of @samp{uint64}. +@end itemize + +Memory Tagging detection is done via a runtime check though, so the presence +of this feature and register is not enough to enable memory tagging support. + +This restriction may be lifted in the future. + +Extra registers are allowed in this feature, but they will not affect +@value{GDBN}. @node ARC Features @subsection ARC Features -- 2.25.1