aboutsummaryrefslogtreecommitdiff
path: root/gdb/arch
diff options
context:
space:
mode:
authorChristophe Lyon <christophe.lyon@arm.com>2022-04-01 10:22:08 +0100
committerChristophe Lyon <christophe.lyon@arm.com>2022-04-27 15:18:18 +0100
commit9074667a8583b33ff1b9590232c15e67f2d1d607 (patch)
tree7fac426a2f4f1087545b74b547aeb4261c8dd6a0 /gdb/arch
parentfcaa1071d7921c4f7c7592a10ed7b84830ec8c49 (diff)
downloadgdb-9074667a8583b33ff1b9590232c15e67f2d1d607.zip
gdb-9074667a8583b33ff1b9590232c15e67f2d1d607.tar.gz
gdb-9074667a8583b33ff1b9590232c15e67f2d1d607.tar.bz2
gdb/arm: Define MSP and PSP registers for M-Profile
This patch removes the hardcoded access to PSP in arm_m_exception_cache() and relies on the definition with the XML descriptions. Signed-off-by: Christophe Lyon <christophe.lyon@foss.st.com> Signed-off-by: Christophe Lyon <christophe.lyon@arm.com>
Diffstat (limited to 'gdb/arch')
-rw-r--r--gdb/arch/arm.c6
-rw-r--r--gdb/arch/arm.h1
2 files changed, 7 insertions, 0 deletions
diff --git a/gdb/arch/arm.c b/gdb/arch/arm.c
index 126e46a..bc6e5ce 100644
--- a/gdb/arch/arm.c
+++ b/gdb/arch/arm.c
@@ -28,6 +28,7 @@
#include "../features/arm/arm-m-profile.c"
#include "../features/arm/arm-m-profile-with-fpa.c"
#include "../features/arm/arm-m-profile-mve.c"
+#include "../features/arm/arm-m-system.c"
/* See arm.h. */
@@ -446,6 +447,11 @@ arm_create_mprofile_target_description (arm_m_profile_type m_type)
regnum = create_feature_arm_arm_m_profile_mve (tdesc, regnum);
break;
+ case ARM_M_TYPE_SYSTEM:
+ regnum = create_feature_arm_arm_m_profile (tdesc, regnum);
+ regnum = create_feature_arm_arm_m_system (tdesc, regnum);
+ break;
+
default:
error (_("Invalid Arm M type: %d"), m_type);
}
diff --git a/gdb/arch/arm.h b/gdb/arch/arm.h
index 755391f..0728bea 100644
--- a/gdb/arch/arm.h
+++ b/gdb/arch/arm.h
@@ -105,6 +105,7 @@ enum arm_m_profile_type {
ARM_M_TYPE_VFP_D16,
ARM_M_TYPE_WITH_FPA,
ARM_M_TYPE_MVE,
+ ARM_M_TYPE_SYSTEM,
ARM_M_TYPE_INVALID
};