From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from EUR04-HE1-obe.outbound.protection.outlook.com (mail-he1eur04on2040.outbound.protection.outlook.com [40.107.7.40]) by sourceware.org (Postfix) with ESMTPS id 42B6E3861848 for ; Wed, 4 Oct 2023 15:28:26 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 42B6E3861848 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=mpLP/xUcKVdmthAG9eDFYXacR7tr61++zYeR/EFPcbc=; b=JPJvkvHfhjd421+CG4hRqFdw7/LIgEEOZlaOcIeWPB+VEhhbncvsu/I4zfdtyIIoDWn+6pWxMfzkw/EpAZKUhVYKXUGef3+iotP4UGM3skAi/7seR8ZMXD7l8ZTypCeEsVgPc3ku4fuGQDKc8Dz02CZrszYUvzecSEDViBS50x8= Received: from DB8PR06CA0064.eurprd06.prod.outlook.com (2603:10a6:10:120::38) by DU0PR08MB8066.eurprd08.prod.outlook.com (2603:10a6:10:3e9::9) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6813.28; Wed, 4 Oct 2023 15:28:23 +0000 Received: from DBAEUR03FT020.eop-EUR03.prod.protection.outlook.com (2603:10a6:10:120:cafe::8c) by DB8PR06CA0064.outlook.office365.com (2603:10a6:10:120::38) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6792.35 via Frontend Transport; Wed, 4 Oct 2023 15:28:23 +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 DBAEUR03FT020.mail.protection.outlook.com (100.127.143.27) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6863.26 via Frontend Transport; Wed, 4 Oct 2023 15:28:22 +0000 Received: ("Tessian outbound ab4fc72d2cd4:v211"); Wed, 04 Oct 2023 15:28:22 +0000 X-CheckRecipientChecked: true X-CR-MTA-CID: e2d633eb44bdde34 X-CR-MTA-TID: 64aa7808 Received: from 27e8776f8cca.1 by 64aa7808-outbound-1.mta.getcheckrecipient.com id 6A76081B-3803-43AA-9A43-3E72B447A798.1; Wed, 04 Oct 2023 15:28:16 +0000 Received: from EUR04-HE1-obe.outbound.protection.outlook.com by 64aa7808-outbound-1.mta.getcheckrecipient.com with ESMTPS id 27e8776f8cca.1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384); Wed, 04 Oct 2023 15:28:16 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=UyAxcQwrURJ2gnqaxHcrltSpUKf5N29RsYZ4cEQEkauB+xCiLeLJE2h4Y+Q2PhlBbXqDgFShn4uMYNI+G5aT7W58ZRw37WHdVZM2DV61iYNwk1nAtgUSUNLzLR47iEZcj6ywE21xGxEvUIYRGMa58agbVJHAJPUbDpSDts/N8a8lcTzCQdrEAuKesVQArnyfXeRW95HJ7WQDYrTSYrIWhMIzyB6Ij2sSNW5TSnhyR9fa95yki0M1Aa3k0KpWF4xJufWdAaVqBlVOAoewbRycH4k3WmJlTSAvIxSL+fxssWP/qic+O0MORhIk8w/VzX1PSJvP5bqMNzZjp23miB7gNQ== 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=mpLP/xUcKVdmthAG9eDFYXacR7tr61++zYeR/EFPcbc=; b=BQ4LI5ApJua8edpwL7KvPT/jmv8G9J1tGTLXokHygoqlu3aJzX6ZD9H1iTba3TSRCXbZscUKDUX+7kKAJ4zAmrH4KuiK0Lvz6AgFKoG2/TFmUdSx6eira2VcvE7fugVPFgqObFnUGljsUhz2wgE/Z8Kqi+f7DXcvtP6hWZIiOvShwp90qeSpdG4zbCNdcqUqnxmkfrC9QHsGHxd10jS3UmexXcwc/Am5BHLLYh1lNDvocAQ5eokXjq9IdbFH2rRG7gBpvAMjwPGCWCSC/wUr5ay1nWWPVCJGK6koECIEv/68Rwb/LRYuxdMHrnzd0D19vOgdNY0D8TjvKvm+XNSaRw== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=arm.com; dmarc=pass action=none header.from=arm.com; dkim=pass header.d=arm.com; 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=mpLP/xUcKVdmthAG9eDFYXacR7tr61++zYeR/EFPcbc=; b=JPJvkvHfhjd421+CG4hRqFdw7/LIgEEOZlaOcIeWPB+VEhhbncvsu/I4zfdtyIIoDWn+6pWxMfzkw/EpAZKUhVYKXUGef3+iotP4UGM3skAi/7seR8ZMXD7l8ZTypCeEsVgPc3ku4fuGQDKc8Dz02CZrszYUvzecSEDViBS50x8= Authentication-Results-Original: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=arm.com; Received: from VI1PR08MB3919.eurprd08.prod.outlook.com (2603:10a6:803:c4::31) by DU0PR08MB9275.eurprd08.prod.outlook.com (2603:10a6:10:41b::10) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6838.35; Wed, 4 Oct 2023 15:28:14 +0000 Received: from VI1PR08MB3919.eurprd08.prod.outlook.com ([fe80::ec3b:5cf4:e970:6f67]) by VI1PR08MB3919.eurprd08.prod.outlook.com ([fe80::ec3b:5cf4:e970:6f67%7]) with mapi id 15.20.6838.033; Wed, 4 Oct 2023 15:28:13 +0000 Message-ID: <0970eedc-350e-9091-45f2-57bbf4bec9be@arm.com> Date: Wed, 4 Oct 2023 16:28:09 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.15.1 Subject: Re: [PATCH v5 0/6] SME2 support for AArch64 gdb/gdbserver on Linux Content-Language: en-US To: gdb-patches@sourceware.org Cc: thiago.bauermann@linaro.org References: <20230918212708.660213-1-luis.machado@arm.com> From: Luis Machado In-Reply-To: <20230918212708.660213-1-luis.machado@arm.com> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-ClientProxiedBy: LO4P123CA0442.GBRP123.PROD.OUTLOOK.COM (2603:10a6:600:1a9::15) To VI1PR08MB3919.eurprd08.prod.outlook.com (2603:10a6:803:c4::31) MIME-Version: 1.0 X-MS-TrafficTypeDiagnostic: VI1PR08MB3919:EE_|DU0PR08MB9275:EE_|DBAEUR03FT020:EE_|DU0PR08MB8066:EE_ X-MS-Office365-Filtering-Correlation-Id: 11aa1135-3b23-44f3-ea0c-08dbc4ee8b9b 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: fNHeZyUD7UPzdY/fuZ/GuKeSx1gqMtKf+Cer92zUkTmrNEl6Sf4pdaYZVt7zlc1n+cPwIPdPKc+A2rKsJ+OJ7bT7DenKJjM8okKieMplL5imQUJu8ai9muBfbIqXuOiY37q/8SFStEp8vP3O8aC7UdNSCWl4uEdS3dtKjlrsCg60303Fc/TUiQw9SR2ymoGFzmFAedpj/MQsTtzhiY6FOKWZvfkxpjE/GeBxf5gKvS0sm1jofrGA6cyrLsRVMUo4coXZeXk0MoylXubR6JezvAQ0dC1YrN6tw32+6AOtC8F0MXO3Lgul9Rj1uXJ3XtDAtQcvNOwl+HMZSv91WrK9ny5IZG+0Jg7jIwNYZ+XLNDmoESkzBarf2sNkl4D0RP4noaDOsxr6mA3MrB/ARJGFEv4n8yiElMdvqmpROTbqtjJTqutqNj2Z2741DcE0OL/lPhxLfkBK+uIIz6R6Fs1+gdExrQ6J/ewASwuwvm+kl+jpwPgYleSgJJ8rvCRgiXiOGiUSNRikoOvVF9uRoP8zc92I3nFXGBiN9UympU/NF6WyndRs5FjinVEx4ZLcW1n47jby7LBu7JFrOswvaPhdfmCGc5NdJ1q689/KL65uam4dOg7e87Vv3gd4VNu1mf2A56Jz1gnPygeV32fz3Q131w== X-Forefront-Antispam-Report-Untrusted: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:VI1PR08MB3919.eurprd08.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230031)(366004)(136003)(376002)(396003)(346002)(39860400002)(230922051799003)(451199024)(186009)(64100799003)(1800799009)(2616005)(8936002)(4326008)(8676002)(26005)(86362001)(38100700002)(36756003)(31696002)(2906002)(83380400001)(5660300002)(44832011)(6666004)(53546011)(6512007)(6486002)(6506007)(478600001)(31686004)(316002)(66946007)(66556008)(66476007)(41300700001)(6916009)(43740500002)(45980500001);DIR:OUT;SFP:1101; X-MS-Exchange-Transport-CrossTenantHeadersStamped: DU0PR08MB9275 Original-Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=arm.com; X-EOPAttributedMessage: 0 X-MS-Exchange-Transport-CrossTenantHeadersStripped: DBAEUR03FT020.eop-EUR03.prod.protection.outlook.com X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id-Prvs: 9ec9d712-3301-4790-3ca2-08dbc4ee864e X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: n8ZIb9UjJnUc+FZpyvmSyt3oi7RCJERhHAnEi+wVbVCv1Abjnc/9XmfNTvZV3oSkT9AkERt6//L6xNL2Y9X6r76uPh4MoWos4ujAHL33RRTj17xR5XTSQkS12N1riLTdMQ+DhciZf8euiYmoHN77BlwhkrFidFAVcf7+N4hoT7RKjGmRn19G161WTFPh4yXYNlauIqGxEnnyHE/JilhHJx7yQaFo7h8/gQDkS8236HQI7vihSobhctuX2Q2uocPtVnpM4/6YGi8HlOmkzlcWuqgsP+HWnzHPXKV2zLdaYCTbB+iarJJHJnEh9k6GK5qY9eCm9HXz2jvxm5U24QtiKpQHEn3NHjR9r99j53B0rSmdmbB5eB5OCOXjNQHsxT3bP5DXII+TxCdFFjei4nHa4oozZkr40ViP045DGkxtXakruxfyhAkQO8O3geYpaYTiGYCSQRNojt4yGdsvsrQwMjSsPYqlR4Vf6ZRrj5f6Z38JIXKzzBb2eN4vpx7wYOjBfVnVNj3K76jvZZrnuC30+jpiQzcH8d5GKxjJ27DGTmu6fYTBzQypvuJlCf2yw5EjFESSGkNR60XtH7+kAlZ52mMy5KBZ4V5a/CSrWN2dIIY5cWz0ZyBOcypUAmQ8O7mbO6tPmwP7CQFbo3vtNFP8sHCNJ7+EoQsBkTizdBojZNCN+qqf7t6PzHm75fOxYNu0UUjVeDSCsublpIehJI0HfymozJ44b9xRMo1RH7//+MvCHMwOiovemL2YvcbCKTYOuChyL55aAdnabsEiY4AHrA== 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)(376002)(39850400004)(136003)(396003)(346002)(230922051799003)(82310400011)(64100799003)(451199024)(1800799009)(186009)(36840700001)(46966006)(40470700004)(40480700001)(44832011)(5660300002)(31696002)(86362001)(8676002)(4326008)(8936002)(40460700003)(2906002)(36756003)(83380400001)(356005)(6666004)(2616005)(81166007)(6512007)(82740400003)(53546011)(107886003)(6486002)(6506007)(478600001)(336012)(26005)(70586007)(70206006)(316002)(6916009)(41300700001)(36860700001)(31686004)(47076005)(43740500002);DIR:OUT;SFP:1101; X-OriginatorOrg: arm.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 04 Oct 2023 15:28:22.6099 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 11aa1135-3b23-44f3-ea0c-08dbc4ee8b9b 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: DBAEUR03FT020.eop-EUR03.prod.protection.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: DU0PR08MB8066 X-Spam-Status: No, score=-6.8 required=5.0 tests=BAYES_00,DKIM_SIGNED,DKIM_VALID,FORGED_SPF_HELO,KAM_DMARC_NONE,NICE_REPLY_A,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: 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.