binutils-gdb/gdb/features/arm/arm-m-system.c
Christophe Lyon 9074667a85 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>
2022-04-27 15:18:18 +01:00

16 lines
486 B
C

/* THIS FILE IS GENERATED. -*- buffer-read-only: t -*- vi:set ro:
Original: arm-m-system.xml */
#include "gdbsupport/tdesc.h"
static int
create_feature_arm_arm_m_system (struct target_desc *result, long regnum)
{
struct tdesc_feature *feature;
feature = tdesc_create_feature (result, "org.gnu.gdb.arm.m-system");
tdesc_create_reg (feature, "msp", regnum++, 1, NULL, 32, "data_ptr");
tdesc_create_reg (feature, "psp", regnum++, 1, NULL, 32, "data_ptr");
return regnum;
}