mirror of
https://sourceware.org/git/binutils-gdb.git
synced 2025-02-05 12:53:16 +08:00
ae7e2f45aa
Armv8-M architecture with Security extension features four stack pointers to handle Secure and Non-secure modes. This patch adds support to switch between them as needed during unwinding, and replaces all updates of cache->prev_sp with calls to arm_cache_set_prev_sp. Signed-off-by: Torbjörn Svensson <torbjorn.svensson@st.com> Signed-off-by: Christophe Lyon <christophe.lyon@foss.st.com> Signed-off-by: Christophe Lyon <christophe.lyon@arm.com>
18 lines
636 B
C
18 lines
636 B
C
/* THIS FILE IS GENERATED. -*- buffer-read-only: t -*- vi:set ro:
|
|
Original: arm-secext.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.secext");
|
|
tdesc_create_reg (feature, "msp_ns", regnum++, 1, NULL, 32, "data_ptr");
|
|
tdesc_create_reg (feature, "psp_ns", regnum++, 1, NULL, 32, "data_ptr");
|
|
tdesc_create_reg (feature, "msp_s", regnum++, 1, NULL, 32, "data_ptr");
|
|
tdesc_create_reg (feature, "psp_s", regnum++, 1, NULL, 32, "data_ptr");
|
|
return regnum;
|
|
}
|