From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from simark.ca by simark.ca with LMTP id 0I74B++a5GS2qwgAWB0awg (envelope-from ) for ; Tue, 22 Aug 2023 07:24:31 -0400 Authentication-Results: simark.ca; dkim=pass (1024-bit key; secure) header.d=sourceware.org header.i=@sourceware.org header.a=rsa-sha256 header.s=default header.b=C04Mnvot; dkim-atps=neutral Received: by simark.ca (Postfix, from userid 112) id 1C3B51E0C2; Tue, 22 Aug 2023 07:24:31 -0400 (EDT) Received: from server2.sourceware.org (server2.sourceware.org [8.43.85.97]) (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 F0B2E1E098 for ; Tue, 22 Aug 2023 07:24:28 -0400 (EDT) Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id 81949382C122 for ; Tue, 22 Aug 2023 11:24:28 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 81949382C122 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sourceware.org; s=default; t=1692703468; bh=RVwJssTLSP/UOy2pU1ICT6ARZ57DkIbvFPoxHeMfrd8=; h=To:CC:Subject:Date:List-Id:List-Unsubscribe:List-Archive: List-Post:List-Help:List-Subscribe:From:Reply-To:From; b=C04MnvotDAeQKhkjv3dBt4awUlzJW/DbXueYeRgYBjg3e8ArBc/4p6B9huJvQyf70 +TwIwOY49TBAIte2pVZQXIn2UWhko98jKUdzULz2kBTwN2xgdm++zcWgec7N0FJPHx A/sMcwGua6gFYAE/5W6l3BAkOhk80uof2u9e7hTg= Received: from EUR03-DBA-obe.outbound.protection.outlook.com (mail-dbaeur03on2079.outbound.protection.outlook.com [40.107.104.79]) by sourceware.org (Postfix) with ESMTPS id BCA0B3851ABE for ; Tue, 22 Aug 2023 11:21:58 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org BCA0B3851ABE Received: from AS4PR09CA0027.eurprd09.prod.outlook.com (2603:10a6:20b:5d4::17) by PAXPR08MB7645.eurprd08.prod.outlook.com (2603:10a6:102:240::22) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6699.20; Tue, 22 Aug 2023 11:21:56 +0000 Received: from AM7EUR03FT013.eop-EUR03.prod.protection.outlook.com (2603:10a6:20b:5d4:cafe::75) by AS4PR09CA0027.outlook.office365.com (2603:10a6:20b:5d4::17) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6699.20 via Frontend Transport; Tue, 22 Aug 2023 11:21:56 +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 AM7EUR03FT013.mail.protection.outlook.com (100.127.140.191) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6723.15 via Frontend Transport; Tue, 22 Aug 2023 11:21:55 +0000 Received: ("Tessian outbound b5a0f4347031:v175"); Tue, 22 Aug 2023 11:21:55 +0000 X-CheckRecipientChecked: true X-CR-MTA-CID: dcb8ac259174cda2 X-CR-MTA-TID: 64aa7808 Received: from fcb92cbf1221.1 by 64aa7808-outbound-1.mta.getcheckrecipient.com id B48E4CE5-B927-42F1-B8F6-A01AFEB56245.1; Tue, 22 Aug 2023 11:21:49 +0000 Received: from EUR05-AM6-obe.outbound.protection.outlook.com by 64aa7808-outbound-1.mta.getcheckrecipient.com with ESMTPS id fcb92cbf1221.1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384); Tue, 22 Aug 2023 11:21:49 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=j460y7H2sbIDICp74Np1+suyzbgaoYRxhCnmthNDwQO1j6s8oQPIZtDaa/lPdWBlFxJywcG4atZJhjAG8ac9UHupcS0cvZV0aS0JhP1RrgkykAHUBPbWgb7HhDaOpzc4AnWYl3dQ9PkMoO1LexYfX0PwJzZl6B2WdybIZa94aDefuf3P+Hk+5kv+SgoDTEebFn9pDt5b4qe8/6Xsssax+3Y6X6V9ZFnSG3R5FhF14SGVdCnXVdxqJ31zOa+eRvNDhm7qPk+AJG05v9HCVAyPBuVrEQgLcqB2KWS5fOePt+wuXhvv9RXzh6CbrEFth1Ed4+yzngR40BWIsBtGF+rsKw== 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=RVwJssTLSP/UOy2pU1ICT6ARZ57DkIbvFPoxHeMfrd8=; b=VXKgIyLEQEioK8H6v1BqlZXA3SZuqPZbUKeSN3nkTVSMOFN0q87rCdMHIFhpA4trh9ctD9oz6T+F3LYTvdHtBvt1wK6RyvQZnX4PtHlJdbtmTqGcoS+S4mm/ZtcvRUMJ56OCuyGO1hs8wTvyy6n7KttkazJj9lSlYPvgn6zPEnTmOqLfaqG0q/fETdyXSDgXaCUuaqK6mF5uOydZwElcC4ZgK29gnAl0b9t0RiyFOGzMKdlaxYYMEs7InGL5X6PgYslrxnf2tQ+cIXXaN15jw5lxPhCEWsUBt9dDGBBRgjvvEgf31aUk+lfMQku+2kpwEtIWNoic0n9C/gE7f8gxwQ== 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 AS9PR06CA0764.eurprd06.prod.outlook.com (2603:10a6:20b:484::18) by PA4PR08MB7434.eurprd08.prod.outlook.com (2603:10a6:102:2a5::18) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6699.20; Tue, 22 Aug 2023 11:21:48 +0000 Received: from AM7EUR03FT034.eop-EUR03.prod.protection.outlook.com (2603:10a6:20b:484:cafe::9) by AS9PR06CA0764.outlook.office365.com (2603:10a6:20b:484::18) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6699.20 via Frontend Transport; Tue, 22 Aug 2023 11:21:48 +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 AM7EUR03FT034.mail.protection.outlook.com (100.127.140.87) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.20.6723.15 via Frontend Transport; Tue, 22 Aug 2023 11:21:45 +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.27; Tue, 22 Aug 2023 11:21:45 +0000 Received: from e129171.cambridge.arm.com (10.1.34.58) by mail.arm.com (10.251.24.32) with Microsoft SMTP Server id 15.1.2507.27 via Frontend Transport; Tue, 22 Aug 2023 11:21:45 +0000 To: CC: Subject: [PATCH v2 0/6] SME2 support for AArch64 gdb/gdbserver on Linux Date: Tue, 22 Aug 2023 12:21:38 +0100 Message-ID: <20230822112144.1513268-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: AM7EUR03FT034:EE_|PA4PR08MB7434:EE_|AM7EUR03FT013:EE_|PAXPR08MB7645:EE_ X-MS-Office365-Filtering-Correlation-Id: 82c3e991-af34-4b33-a6f8-08dba301fe4d 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: Der+t/CIOziTGBCVCV4p29eCzkZRNmVPYJn3ULhBJ2Qyaoxvkc77I2oCDgnN2loEFbtp9gb0kkSCQYeDEMee0i+XXRLJ5thwUIcqMjklNNW22q1ItvOErokqM83xzEPkARV9Yd1i/BeH8GokpI1INTOYW1vknOIN6NCNkiY+cg9oUuJWdFBCMipc9aR4wK2BtTV5L20Bz5pgPiAEaj3gTiIb29HVc4OQ/pD+5H93PsFgoqJTFHp1NdBRiX82mAVD7pdsEkltToaLgwwzrBvFvXj2j6wQdxw2j0XhU9f5j0pHVaEGmT1QQOQs5eaDb0RIsRriRSR2m2FPpr/bSgKkyKGyHMer0V1cUnU4EAJRi6KGDhPeU6PzeuOt85mAOeqMG1PEHBPeljfwqXCfq1LLHz5K2u4sku3coiGVAVj1IbeH5T2yCMiixYajHK3KlMkfi8hxIhe6vGXK0L63pEdoR5F+NtTl1aR0lEFaCciQXSu4XZIbJf/Mq+dB25CqJGTquyPmCIuJRYkNJZFyd6PItMXyTZv5aeWg0sSdfBKzvcWX8m44qgSa1ewQyFgLtgMJaAm68KHEhUr/KwJFnc/+X/vbl9CVk7371cueCthlehD+vkEcmAJcx0CxMJ3drAHgOQCm8/ZnBYhXN6YC1EwYb9ihfUxf5ejW8U+k0etCpSehP3qS2Ump37gmGLVlmcfqEjfxYIPdKJtQEWmilfWksD3nXWOeOdIqtGFulK4AQqtg3DzhVKk/6+x4z3uJ+BZyioON6paguktz1BxPjLrNCg== 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)(136003)(376002)(396003)(39860400002)(346002)(1800799009)(186009)(451199024)(82310400011)(36840700001)(40470700004)(46966006)(6916009)(316002)(70586007)(70206006)(8676002)(8936002)(2616005)(4326008)(36756003)(40460700003)(41300700001)(1076003)(82740400003)(356005)(81166007)(478600001)(6666004)(40480700001)(83380400001)(2906002)(86362001)(47076005)(7696005)(36860700001)(336012)(44832011)(426003)(5660300002)(26005)(36900700001); DIR:OUT; SFP:1101; X-MS-Exchange-Transport-CrossTenantHeadersStamped: PA4PR08MB7434 X-MS-Exchange-Transport-CrossTenantHeadersStripped: AM7EUR03FT013.eop-EUR03.prod.protection.outlook.com X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id-Prvs: d8353295-e096-4c22-ecb0-08dba301f859 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: z0dAi1DAguCCPfJY44Ir1Nb4K032wdlTYWpoGNKyxEUheFpRY4XH5Sptob7lfXawd9bStWSxqPvU3x8z1YUscgcHsLfwPWQIJweu1ZzscaRBuOVq/MlnFuUIf5nZfIcPbnibegA9v9seTUFSfWGk/uTuZK512E/Sjrx/w9TGoVl6qp9xTy7J8Jmn3wm9LmhVTK08+mAcxzuTPbblier8EgMCO4CoKhXKlrIqIfOp+1vSo27naJdw/vb/upcYQ4gef4b+8/peNpfPFyYCvBTt9mTwwmQDCL9SBtQw8iC7307Xy7dujK1BATG3Xr2QEPnqFRMzBhFPRAAuswgdI4jsCGAm4QsP4fcYO9i0xh+H1mCG7Qz/yTNO8ic62JGLbhRDRo9dZEYgnm3EOfHUx9u6cdvIjCTc5Cy6dCqTVOipd57nUItrwZL7dM0V2TO0EKkVED56rNjNc7yydZtjeQi7+zWcg5rJBI9RIRXbn4dUOlxJ6cawZRz6ejp7p6WU2oRoR0G+MPMt5IxlC/YWbxMFIlnDysI+DPY+JHh1Me/zBp/1SjaOByC6MyhzwNPMBTuuOVaiipyz8bgidlpDnnLF1T12EWTr7g8o5u03D8Qm2wGp3t8dNXDlNJpSI5++HOQ09b1M5XdlDs6Z6WWVPIK0ZujO7S7m9/1xZimVcZVZVKNJ3w36tMX6di3H+VFbqSRTx9PKPFu/yH9vQt/H9XHmK978xPP6eJsPevDHKQxGa1o= 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)(136003)(376002)(396003)(39860400002)(346002)(1800799009)(186009)(451199024)(82310400011)(36840700001)(40470700004)(46966006)(6916009)(316002)(70586007)(70206006)(8676002)(8936002)(2616005)(107886003)(4326008)(36756003)(40460700003)(41300700001)(1076003)(82740400003)(81166007)(478600001)(6666004)(40480700001)(83380400001)(2906002)(86362001)(47076005)(7696005)(36860700001)(336012)(44832011)(426003)(5660300002)(26005); DIR:OUT; SFP:1101; X-OriginatorOrg: arm.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 22 Aug 2023 11:21:55.9228 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 82c3e991-af34-4b33-a6f8-08dba301fe4d 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: AM7EUR03FT013.eop-EUR03.prod.protection.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: PAXPR08MB7645 X-Spam-Status: No, score=-6.3 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, KAM_DMARC_NONE, RCVD_IN_DNSWL_NONE, RCVD_IN_MSPIKE_H2, SPF_HELO_NONE, 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.29 Precedence: list List-Id: Gdb-patches mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , From: Luis Machado via Gdb-patches Reply-To: Luis Machado Errors-To: gdb-patches-bounces+public-inbox=simark.ca@sourceware.org Sender: "Gdb-patches" 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 (depends on binutils patches). - 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 | 146 ++++++++++++++++++ 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 ++++++ gdb/testsuite/lib/aarch64.exp | 53 +++++++ gdbserver/linux-aarch64-low.cc | 63 ++++++++ 22 files changed, 810 insertions(+), 9 deletions(-) create mode 100644 gdb/features/aarch64-sme2.c -- 2.25.1