diff options
author | Christophe Lyon <christophe.lyon@arm.com> | 2022-04-01 10:22:08 +0100 |
---|---|---|
committer | Christophe Lyon <christophe.lyon@arm.com> | 2022-04-27 15:18:18 +0100 |
commit | 9074667a8583b33ff1b9590232c15e67f2d1d607 (patch) | |
tree | 7fac426a2f4f1087545b74b547aeb4261c8dd6a0 /gdb/arch/arm.c | |
parent | fcaa1071d7921c4f7c7592a10ed7b84830ec8c49 (diff) | |
download | gdb-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/arm.c')
-rw-r--r-- | gdb/arch/arm.c | 6 |
1 files changed, 6 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); } |