From patchwork Thu Jun 6 12:23:24 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Alan Hayward X-Patchwork-Id: 33038 Received: (qmail 103700 invoked by alias); 6 Jun 2019 12:23:29 -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 103426 invoked by uid 89); 6 Jun 2019 12:23:28 -0000 Authentication-Results: sourceware.org; auth=none X-Spam-SWARE-Status: No, score=-24.1 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 autolearn=ham version=3.3.1 spammy=dit, bypass, Speculative, 12, 16 X-HELO: EUR02-VE1-obe.outbound.protection.outlook.com Received: from mail-eopbgr20074.outbound.protection.outlook.com (HELO EUR02-VE1-obe.outbound.protection.outlook.com) (40.107.2.74) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Thu, 06 Jun 2019 12:23:27 +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=uicahThO1hRT2eufGi8M9rbq2yFEJoPZE080/zcI55g=; b=V9bZqLyFU7iC2LGuNi+J65meLOwmxVOVRyw0+vqXjwPr6HNI9jFNUG7tKHK2EgcLgrMuFO8M8jjp4xkPQOpif0j8SY3MsS3cPEWKWp11k2/hVoMo9uWomhW7zj2UK+/jfhFz3UWGAu4RqZ0n1tc4WipqJJtloG3Zcy3cSE5wG0s= Received: from DB6PR0802MB2133.eurprd08.prod.outlook.com (10.172.227.22) by DB6PR0802MB2405.eurprd08.prod.outlook.com (10.172.250.146) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.1943.22; Thu, 6 Jun 2019 12:23:24 +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.011; Thu, 6 Jun 2019 12:23:24 +0000 From: Alan Hayward To: "gdb-patches@sourceware.org" CC: nd , Alan Hayward Subject: [PATCH 1/2] AArch64: Add missing CPSR flags Date: Thu, 6 Jun 2019 12:23:24 +0000 Message-ID: <20190606122240.10406-1-alan.hayward@arm.com> authentication-results: spf=none (sender IP is ) smtp.mailfrom=Alan.Hayward@arm.com; x-ms-oob-tlc-oobclassifiers: OLM:5236; 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 Add all the CPSR flags for Armv8.1-A through to Armv8.5-A. In addition, document all the existing flags, and remove the superfluous empty spaces. gdb/ChangeLog: 2019-06-06 Alan Hayward * features/aarch64-core.c (create_feature_aarch64_core): Regenerate. * features/aarch64-core.xml: Add cpsr flags. --- gdb/features/aarch64-core.c | 8 ++++++-- gdb/features/aarch64-core.xml | 29 +++++++++++++++++++++++++++-- 2 files changed, 33 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..0237bc98d8 100644 --- a/gdb/features/aarch64-core.c +++ b/gdb/features/aarch64-core.c @@ -12,16 +12,20 @@ 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_bitfield (type_with_fields, "BTI", 10, 11); + 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..aa1a07e483 100644 --- a/gdb/features/aarch64-core.xml +++ b/gdb/features/aarch64-core.xml @@ -44,22 +44,47 @@ + - + + + - + + + + + + + + + + + + + + + + + + + + + + +