From patchwork Tue Jun 11 09:23:57 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Alan Hayward X-Patchwork-Id: 33081 Received: (qmail 15651 invoked by alias); 11 Jun 2019 09:24:03 -0000 Mailing-List: contact gdb-patches-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Unsubscribe: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sourceware.org Delivered-To: mailing list gdb-patches@sourceware.org Received: (qmail 13819 invoked by uid 89); 11 Jun 2019 09:24:02 -0000 Authentication-Results: sourceware.org; auth=none X-Spam-SWARE-Status: No, score=-24.0 required=5.0 tests=AWL, BAYES_00, GIT_PATCH_0, GIT_PATCH_1, GIT_PATCH_2, GIT_PATCH_3, MIME_BASE64_BLANKS, RCVD_IN_DNSWL_NONE, SPF_HELO_PASS, SPF_PASS autolearn=ham version=3.3.1 spammy=tco, fiq X-HELO: EUR03-AM5-obe.outbound.protection.outlook.com Received: from mail-eopbgr30062.outbound.protection.outlook.com (HELO EUR03-AM5-obe.outbound.protection.outlook.com) (40.107.3.62) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Tue, 11 Jun 2019 09:24:00 +0000 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=Qo8eByiT1OoCnHwHGQzYqjmUXDRjAErCa3dztmR5KOU=; b=N5qyM2C+VVF75TCXty5hdrMcVaiWs1nzfdW72zQThcqn+POTnqeii0yL0prn1Y08Dr3pj3i+GQShPTETD0OHX8yncwkhiRCXWutIdpZoK2mzaYtuHiPjk761RVXgluz7/3w3yLleNhLchLxc+zprz6zuQ1AF1FdcwJ7XxHWuUnA= Received: from DB6PR0802MB2133.eurprd08.prod.outlook.com (10.172.227.22) by DB6PR0802MB2501.eurprd08.prod.outlook.com (10.172.252.21) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.1965.15; Tue, 11 Jun 2019 09:23:57 +0000 Received: from DB6PR0802MB2133.eurprd08.prod.outlook.com ([fe80::8c26:bb4b:6c93:9d40]) by DB6PR0802MB2133.eurprd08.prod.outlook.com ([fe80::8c26:bb4b:6c93:9d40%2]) with mapi id 15.20.1965.017; Tue, 11 Jun 2019 09:23:57 +0000 From: Alan Hayward To: "gdb-patches@sourceware.org" CC: nd , Alan Hayward Subject: [PATCH v2] AArch64: Add missing CPSR flags Date: Tue, 11 Jun 2019 09:23:57 +0000 Message-ID: <20190611092353.45787-1-alan.hayward@arm.com> authentication-results: spf=none (sender IP is ) smtp.mailfrom=Alan.Hayward@arm.com; x-ms-oob-tlc-oobclassifiers: OLM:7691; received-spf: None (protection.outlook.com: arm.com does not designate permitted sender hosts) x-ms-exchange-senderadcheck: 1 MIME-Version: 1.0 X-MS-Exchange-CrossTenant-mailboxtype: HOSTED X-MS-Exchange-CrossTenant-userprincipalname: Alan.Hayward@arm.com X-IsSubscribed: yes [ This update does not add the 8.5 BTI bitfield. There is no support yet in Linux for it. By defining it now, because it's a bitfield it would always be shown in CPSR, which would be confusing. I will return to BTI once Linux support for it is in. ] Add all the CPSR flags for Armv8.1-A through to Armv8.4-A. In addition, document all the existing flags, and remove the superfluous empty spaces. gdb/ChangeLog: 2019-06-11 Alan Hayward * features/aarch64-core.c (create_feature_aarch64_core): Regenerate. * features/aarch64-core.xml: Add cpsr flags. --- gdb/features/aarch64-core.c | 7 +++++-- gdb/features/aarch64-core.xml | 28 ++++++++++++++++++++++++++-- 2 files changed, 31 insertions(+), 4 deletions(-) -- 2.20.1 (Apple Git-117) diff --git a/gdb/features/aarch64-core.c b/gdb/features/aarch64-core.c index cd3de02cbc..c6e1910be0 100644 --- a/gdb/features/aarch64-core.c +++ b/gdb/features/aarch64-core.c @@ -12,16 +12,19 @@ create_feature_aarch64_core (struct target_desc *result, long regnum) tdesc_type_with_fields *type_with_fields; type_with_fields = tdesc_create_flags (feature, "cpsr_flags", 4); tdesc_add_flag (type_with_fields, 0, "SP"); - tdesc_add_flag (type_with_fields, 1, ""); tdesc_add_bitfield (type_with_fields, "EL", 2, 3); tdesc_add_flag (type_with_fields, 4, "nRW"); - tdesc_add_flag (type_with_fields, 5, ""); tdesc_add_flag (type_with_fields, 6, "F"); tdesc_add_flag (type_with_fields, 7, "I"); tdesc_add_flag (type_with_fields, 8, "A"); tdesc_add_flag (type_with_fields, 9, "D"); + tdesc_add_flag (type_with_fields, 12, "SSBS"); tdesc_add_flag (type_with_fields, 20, "IL"); tdesc_add_flag (type_with_fields, 21, "SS"); + tdesc_add_flag (type_with_fields, 22, "PAN"); + tdesc_add_flag (type_with_fields, 23, "UAO"); + tdesc_add_flag (type_with_fields, 24, "DIT"); + tdesc_add_flag (type_with_fields, 25, "TCO"); tdesc_add_flag (type_with_fields, 28, "V"); tdesc_add_flag (type_with_fields, 29, "C"); tdesc_add_flag (type_with_fields, 30, "Z"); diff --git a/gdb/features/aarch64-core.xml b/gdb/features/aarch64-core.xml index 6c6b98552b..3687981589 100644 --- a/gdb/features/aarch64-core.xml +++ b/gdb/features/aarch64-core.xml @@ -44,22 +44,46 @@ + - + + + - + + + + + + + + + + + + + + + + + + + + + +