From aa2f9bcf23a00fc7e9d7350757b8938c36106c42 Mon Sep 17 00:00:00 2001 From: Alan Hayward Date: Wed, 26 Jun 2019 15:48:12 +0100 Subject: [PATCH] AArch64: Add missing CPSR flags 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: * features/aarch64-core.c (create_feature_aarch64_core): Regenerate. * features/aarch64-core.xml: Add cpsr flags. --- gdb/ChangeLog | 6 ++++++ gdb/features/aarch64-core.c | 7 +++++-- gdb/features/aarch64-core.xml | 28 ++++++++++++++++++++++++++-- 3 files changed, 37 insertions(+), 4 deletions(-) diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 3e6a1704fbb..04a9ebc1edc 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,9 @@ +2019-06-26 Alan Hayward + + * features/aarch64-core.c (create_feature_aarch64_core): + Regenerate. + * features/aarch64-core.xml: Add cpsr flags. + 2019-06-26 Alan Hayward * arm-tdep.c (arm_gnu_triplet_regexp): New function. diff --git a/gdb/features/aarch64-core.c b/gdb/features/aarch64-core.c index cd3de02cbc1..c6e1910be07 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 6c6b98552b4..36879815890 100644 --- a/gdb/features/aarch64-core.xml +++ b/gdb/features/aarch64-core.xml @@ -44,22 +44,46 @@ + - + + + - + + + + + + + + + + + + + + + + + + + + + + -- 2.30.2