Message ID | 20230918212708.660213-1-luis.machado@arm.com |
---|---|
Headers |
Return-Path: <gdb-patches-bounces+patchwork=sourceware.org@sourceware.org> X-Original-To: patchwork@sourceware.org Delivered-To: patchwork@sourceware.org Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id 72967385701B for <patchwork@sourceware.org>; Mon, 18 Sep 2023 21:29:56 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 72967385701B DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sourceware.org; s=default; t=1695072596; bh=mzLdYLKqPNGQ97gYbBQH0q6138qfd/AZWLMJyrSf1hI=; h=To:CC:Subject:Date:List-Id:List-Unsubscribe:List-Archive: List-Post:List-Help:List-Subscribe:From:Reply-To:From; b=gE79b2ezlwBqRmja6+jogE8ctW3qqA/1LKG0CFhDbsb2vtSxMB1cr2Yyqnyr4fJmb 3UJFZinv8r3GXTOcGFqGwX4CroG0gUoYHgMNveuAEY6dw6kI/LLPVH1QVd2cnkjm3k yR9i2eo9dwuGApT/OF7CeNTYhrZNDf//CkLgV92c= X-Original-To: gdb-patches@sourceware.org Delivered-To: gdb-patches@sourceware.org Received: from EUR02-VI1-obe.outbound.protection.outlook.com (mail-vi1eur02on2086.outbound.protection.outlook.com [40.107.241.86]) by sourceware.org (Postfix) with ESMTPS id EDBB13857342 for <gdb-patches@sourceware.org>; Mon, 18 Sep 2023 21:27:29 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org EDBB13857342 Received: from AS8PR04CA0200.eurprd04.prod.outlook.com (2603:10a6:20b:2f3::25) by PAXPR08MB7417.eurprd08.prod.outlook.com (2603:10a6:102:2bc::10) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6792.27; Mon, 18 Sep 2023 21:27:27 +0000 Received: from AM7EUR03FT031.eop-EUR03.prod.protection.outlook.com (2603:10a6:20b:2f3:cafe::8e) by AS8PR04CA0200.outlook.office365.com (2603:10a6:20b:2f3::25) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6792.27 via Frontend Transport; Mon, 18 Sep 2023 21:27:27 +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 AM7EUR03FT031.mail.protection.outlook.com (100.127.140.84) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6813.16 via Frontend Transport; Mon, 18 Sep 2023 21:27:27 +0000 Received: ("Tessian outbound 5c548696a0e7:v175"); Mon, 18 Sep 2023 21:27:27 +0000 X-CheckRecipientChecked: true X-CR-MTA-CID: 3bc4122a675599d6 X-CR-MTA-TID: 64aa7808 Received: from 942b664e1062.1 by 64aa7808-outbound-1.mta.getcheckrecipient.com id 947E0C04-03B5-4461-8CF3-AC096E17A2D8.1; Mon, 18 Sep 2023 21:27:20 +0000 Received: from EUR05-DB8-obe.outbound.protection.outlook.com by 64aa7808-outbound-1.mta.getcheckrecipient.com with ESMTPS id 942b664e1062.1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384); Mon, 18 Sep 2023 21:27:20 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=ApEqeZBuiuSFRs0YxWFbgAPdUX9r3tY0crnq3tJMjDO1mlNDLDtacBsDYWyHeLgQazdi4bUfFOcUVTEil1TbCJC6zQnCxjUuDaV+UpiJq+dP0RmPJIolYJh10AOqlikDqGhvkIcwrUBKpY2SB7BbWQRFnrRm1c4Ptn15NCSSvm2U7hRHIjmHGEEZbEPq96KJ0FCIIH4vuq9zsXTCFNgH7In01kDTxpeeZNdrOwSOH7zmxsopNt4eZcDzmDyCi7rduxszIHyMD8+96CtN2WuN6b/gu7vnnHRICBHxBhKbFagEBNDMnMxJlaeorpoRQCMrpzhirFwKP+CvI3CmlkacKg== 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=mzLdYLKqPNGQ97gYbBQH0q6138qfd/AZWLMJyrSf1hI=; b=FhD8dbTL3+WjpSVWmJCX7z611wZASQojlaImUwGIjx1BPCFfv9f+9HhGcuo7IUxC7B//pyCoTtQ2z6EyzlnnFNFVw06Eh8vELMjyPO15CHD9ktzuuKMTFN5HTWG8yhZ9zf8k1ykx48aEURQ7C6D+bHZl1VrXWIi9YTZy9g2uKZaqqYC6WSDygId+45aPjtVF7LjyXd6v/8cgE5z3wQskuzdLKPJt4DWyCz+OqHY/GRzU5wo367RtslW4It4T6vCsnNA9UFjk3p5BzuXNR1yczIu6CKCwlcZ5xadYGH3r2nfPdjY8sALJM16QfjtXHwV9gKyPQgM2cD03Vc5kgMHK0g== 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 Received: from AS8P251CA0019.EURP251.PROD.OUTLOOK.COM (2603:10a6:20b:2f2::22) by DU2PR08MB10263.eurprd08.prod.outlook.com (2603:10a6:10:491::6) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6792.21; Mon, 18 Sep 2023 21:27:18 +0000 Received: from AM7EUR03FT040.eop-EUR03.prod.protection.outlook.com (2603:10a6:20b:2f2:cafe::ed) by AS8P251CA0019.outlook.office365.com (2603:10a6:20b:2f2::22) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6792.27 via Frontend Transport; Mon, 18 Sep 2023 21:27:18 +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.6813.16 via Frontend Transport; Mon, 18 Sep 2023 21:27:18 +0000 Received: from AZ-NEU-EX04.Arm.com (10.251.24.32) by AZ-NEU-EX04.Arm.com (10.251.24.32) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.27; Mon, 18 Sep 2023 21:27:17 +0000 Received: from e129171.arm.com (10.57.64.238) by mail.arm.com (10.251.24.32) with Microsoft SMTP Server id 15.1.2507.27 via Frontend Transport; Mon, 18 Sep 2023 21:27:17 +0000 To: <gdb-patches@sourceware.org> CC: <thiago.bauermann@linaro.org> Subject: [PATCH v5 0/6] SME2 support for AArch64 gdb/gdbserver on Linux Date: Mon, 18 Sep 2023 22:27:02 +0100 Message-ID: <20230918212708.660213-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_|DU2PR08MB10263:EE_|AM7EUR03FT031:EE_|PAXPR08MB7417:EE_ X-MS-Office365-Filtering-Correlation-Id: c1c75daa-b6b0-4aaa-5152-08dbb88e0e99 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: 29Cn4g5mNzouvhSaiU2yWt66fiZwHOkZJ3aU5OXipCEMVuzN1ua+X8BNd50qfymi2VKCjknNZ+7Urvbwi73WDUsusdpGeC/XFR6ElGMF9v+7WllSieRHB5niab5TWUJP0QIN5mXRDZKmc23Tdtqhls763yoB63qvgsUZgYGJ3b6p6kMsinLKwGmYAGX+oGKMR97MVGtIr8SeEOHEAjPy/wgxZ1SzBXbGVysH+bE/tWXFEtqaNcxs+fv/yH7szUq4VMz9261cJlhlU5huPXM3wnks2vyDj8tCv0APewC172KZ+mX9NTmUD//7ek90g6Xg1id5BiDbY1lNl+297fEgy2YY4FXOWhi5/phWEsH1XNDXLtc+cscJFVb+BSBVG/fe2cpKMDcCIHIR7r8AFYUHNFJ6WSUjvHRT5HN2lsY8sd5YGpvak5CJQ0enviK2zx3GtvR0zPuFIOd3zfIkl+OCHFNZJWwYThPrfFYgTW4RIQ1bKbSEXccWtHKetzyAlWzTKJLeqrEaWiq6hQVVujX9WzIlBjTFB9XzdnANoIpv0cCy2B/M9o7SRWTDwRsSUOgsn1CbCPQxl9DY3gVtLgDhJrSopkishnRaK/7oCotk0ZGNYIz+A5oGbVF9vVtmUk5+86r2ocQv8BQlsueCSNbdOeaR8XFAWVeMHYU5jB5oF/zoYYiHPmmqjj8/YEXSRBiwaQQ2SCmQnPCohHrNXC2ZX7Vmkbrj+aHcZJt0Nf6lu1Q= 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:(13230031)(4636009)(39850400004)(346002)(136003)(376002)(396003)(451199024)(186009)(1800799009)(82310400011)(36840700001)(46966006)(83380400001)(5660300002)(4326008)(6666004)(7696005)(82740400003)(40480700001)(356005)(36756003)(81166007)(86362001)(36860700001)(1076003)(2616005)(26005)(2906002)(336012)(426003)(478600001)(6916009)(41300700001)(47076005)(8676002)(8936002)(70586007)(70206006)(316002)(44832011)(36900700001); DIR:OUT; SFP:1101; X-MS-Exchange-Transport-CrossTenantHeadersStamped: DU2PR08MB10263 X-MS-Exchange-Transport-CrossTenantHeadersStripped: AM7EUR03FT031.eop-EUR03.prod.protection.outlook.com X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id-Prvs: 10e9869c-30e4-497b-8ef2-08dbb88e0923 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: jidx6Sgbj6TgeEHuzxObBLLrtUlqdsC3Lqij8YlS+VybOzpdiutZpX/xsa4cqHQTuF0njgHq166Zi6RBEGg0L3jljpbP6ergB5EHrjhFTVZ7jXVdhIHZ47eSh29CTXpnL+uuy+PQ/c724EkCf8mUxdHhYmH5mhkti+FnVU04Ez0XrNbFOW9dEypDAwHA4AfszGagcOZ3qb37fecPW2gv1e5hsPWQtA58qEeVw91MSJgLpgD1+YmOk/VH5AnXonknikW1GZfQZDkLQJXiwQs8FtGvORXlhZoLmGHIN2i5rl+jyD7MSqXlTAG6AZhxGDyH07wJ9uBLjG0Yjy65GOisWAfqtVyCkieeLIeDy2EaIWtgwWiJKIqg+PW/LA53TT8yXdheAb4C3wmKWs7MxYfZl8sGOlccc+44RXAsikQXGKlewiDJS5CIhG4DJ1cP7HLorQHrQPKpw95BSkQ+tj5Owz56l9YiJ/D4g1zgd92v/pb6zbczcrztK5ajIaE9cfxUYtnQSyDb+jZaM0tDhpaAr6oKjl0U9Fp3eC259UUbEEMraXjnWOmuIXpjshF3/NEfFowRpPaNGS+tgWlRnPA3G5cCn+Tb3LaFJWNaQczx5ItpS2PY3LrU3R+k15LpXKwxAAdcTk5zZInJg6EmMB23apv6DctknufTudCj5zvmS3fA0UnQIOzqoD7u4cWfuPWHdto3vsv36O9KvWByXuhncNXDp+akaWXAI4QOAjZeUPA= 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:(13230031)(4636009)(396003)(346002)(376002)(136003)(39860400002)(451199024)(186009)(1800799009)(82310400011)(36840700001)(40470700004)(46966006)(41300700001)(4326008)(6916009)(316002)(70206006)(70586007)(8676002)(8936002)(44832011)(478600001)(6666004)(2616005)(2906002)(107886003)(26005)(426003)(336012)(83380400001)(1076003)(5660300002)(86362001)(47076005)(36860700001)(82740400003)(81166007)(40480700001)(36756003)(40460700003)(7696005); DIR:OUT; SFP:1101; X-OriginatorOrg: arm.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 18 Sep 2023 21:27:27.2384 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: c1c75daa-b6b0-4aaa-5152-08dbb88e0e99 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: AM7EUR03FT031.eop-EUR03.prod.protection.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: PAXPR08MB7417 X-Spam-Status: No, score=-5.8 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, FORGED_SPF_HELO, KAM_DMARC_NONE, RCVD_IN_DNSWL_NONE, RCVD_IN_MSPIKE_H2, SPF_HELO_PASS, SPF_NONE, TXREP, UNPARSEABLE_RELAY autolearn=no autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on server2.sourceware.org X-BeenThere: gdb-patches@sourceware.org X-Mailman-Version: 2.1.30 Precedence: list List-Id: Gdb-patches mailing list <gdb-patches.sourceware.org> List-Unsubscribe: <https://sourceware.org/mailman/options/gdb-patches>, <mailto:gdb-patches-request@sourceware.org?subject=unsubscribe> List-Archive: <https://sourceware.org/pipermail/gdb-patches/> List-Post: <mailto:gdb-patches@sourceware.org> List-Help: <mailto:gdb-patches-request@sourceware.org?subject=help> List-Subscribe: <https://sourceware.org/mailman/listinfo/gdb-patches>, <mailto:gdb-patches-request@sourceware.org?subject=subscribe> From: Luis Machado via Gdb-patches <gdb-patches@sourceware.org> Reply-To: Luis Machado <luis.machado@arm.com> Errors-To: gdb-patches-bounces+patchwork=sourceware.org@sourceware.org Sender: "Gdb-patches" <gdb-patches-bounces+patchwork=sourceware.org@sourceware.org> |
Series |
SME2 support for AArch64 gdb/gdbserver on Linux
|
|
Message
Luis Machado
Sept. 18, 2023, 9:27 p.m. UTC
The following series enables SME 2 (Scalable Matrix Extension 2) support for AArch64 gdb and gdbserver. SME2 expands on SME by adding a predicate register of 512 bits named ZT0. At a high level, this series does the following: - Adds support for the ZT0 register and adds a new target description feature for it. - Core file support. - Signal frame context support. - Native Linux handling of the new NT_ARM_ZT register set. This series depends on the SME series, and should be applied on top of that one. Luis Machado (6): [gdb/aarch64] sme2: Enable SME2 for AArch64 gdb on Linux [gdbserver/aarch64] sme2: Enable SME2 support in gdbserver [gdb/aarch64] sme2: signal frame support [gdb/aarch64] sme2: Core file support for ZT register set [gdb/testsuite] sme2: Extend SME tests to include SME2 [gdb/docs] sme2: Document SME2 registers and features gdb/NEWS | 3 + gdb/aarch64-linux-nat.c | 49 ++++++ gdb/aarch64-linux-tdep.c | 152 ++++++++++++++++++ gdb/aarch64-tdep.c | 21 +++ gdb/aarch64-tdep.h | 10 ++ gdb/arch/aarch64-scalable-linux.h | 6 + gdb/arch/aarch64.c | 4 + gdb/arch/aarch64.h | 12 +- gdb/doc/gdb.texinfo | 65 ++++++++ gdb/features/aarch64-sme2.c | 43 +++++ gdb/nat/aarch64-scalable-linux-ptrace.c | 134 +++++++++++++++ gdb/nat/aarch64-scalable-linux-ptrace.h | 26 +++ gdb/testsuite/gdb.arch/aarch64-sme-core.c | 32 +++- .../gdb.arch/aarch64-sme-core.exp.tcl | 2 +- .../aarch64-sme-regs-available.exp.tcl | 17 ++ .../gdb.arch/aarch64-sme-regs-sigframe.c | 32 +++- .../aarch64-sme-regs-sigframe.exp.tcl | 13 +- .../aarch64-sme-regs-unavailable.exp.tcl | 12 ++ gdb/testsuite/gdb.arch/aarch64-sme-sanity.c | 32 +++- gdb/testsuite/lib/aarch64-scalable.exp | 44 +++++ gdbserver/linux-aarch64-low.cc | 57 +++++++ 21 files changed, 757 insertions(+), 9 deletions(-) create mode 100644 gdb/features/aarch64-sme2.c
Comments
On 9/18/23 22:27, Luis Machado via Gdb-patches wrote: > The following series enables SME 2 (Scalable Matrix Extension 2) support for > AArch64 gdb and gdbserver. > > SME2 expands on SME by adding a predicate register of 512 bits named ZT0. > > At a high level, this series does the following: > > - Adds support for the ZT0 register and adds a new target description feature > for it. > - Core file support. > - Signal frame context support. > - Native Linux handling of the new NT_ARM_ZT register set. > > This series depends on the SME series, and should be applied on top of that > one. > > Luis Machado (6): > [gdb/aarch64] sme2: Enable SME2 for AArch64 gdb on Linux > [gdbserver/aarch64] sme2: Enable SME2 support in gdbserver > [gdb/aarch64] sme2: signal frame support > [gdb/aarch64] sme2: Core file support for ZT register set > [gdb/testsuite] sme2: Extend SME tests to include SME2 > [gdb/docs] sme2: Document SME2 registers and features > > gdb/NEWS | 3 + > gdb/aarch64-linux-nat.c | 49 ++++++ > gdb/aarch64-linux-tdep.c | 152 ++++++++++++++++++ > gdb/aarch64-tdep.c | 21 +++ > gdb/aarch64-tdep.h | 10 ++ > gdb/arch/aarch64-scalable-linux.h | 6 + > gdb/arch/aarch64.c | 4 + > gdb/arch/aarch64.h | 12 +- > gdb/doc/gdb.texinfo | 65 ++++++++ > gdb/features/aarch64-sme2.c | 43 +++++ > gdb/nat/aarch64-scalable-linux-ptrace.c | 134 +++++++++++++++ > gdb/nat/aarch64-scalable-linux-ptrace.h | 26 +++ > gdb/testsuite/gdb.arch/aarch64-sme-core.c | 32 +++- > .../gdb.arch/aarch64-sme-core.exp.tcl | 2 +- > .../aarch64-sme-regs-available.exp.tcl | 17 ++ > .../gdb.arch/aarch64-sme-regs-sigframe.c | 32 +++- > .../aarch64-sme-regs-sigframe.exp.tcl | 13 +- > .../aarch64-sme-regs-unavailable.exp.tcl | 12 ++ > gdb/testsuite/gdb.arch/aarch64-sme-sanity.c | 32 +++- > gdb/testsuite/lib/aarch64-scalable.exp | 44 +++++ > gdbserver/linux-aarch64-low.cc | 57 +++++++ > 21 files changed, 757 insertions(+), 9 deletions(-) > create mode 100644 gdb/features/aarch64-sme2.c > Pushed now.