Add an arm-tls feature which includes the tpidruro register from CP15.

This commit is contained in:
John Baldwin
2022-05-03 16:05:10 -07:00
parent 40c23d8803
commit 92d48a1e4e
12 changed files with 66 additions and 17 deletions

View File

@@ -134,6 +134,8 @@ struct arm_gdbarch_tdep : gdbarch_tdep
int m_profile_msp_s_regnum = ARM_SP_REGNUM; /* M-profile MSP_S register number. */
int m_profile_psp_s_regnum = ARM_SP_REGNUM; /* M-profile PSP_S register number. */
int tls_regnum = 0; /* Number of the tpidruro register. */
bool is_m = false; /* Does the target follow the "M" profile. */
bool have_sec_ext = false; /* Do we have security extensions? */
CORE_ADDR lowest_pc = 0; /* Lowest address at which instructions
@@ -317,7 +319,7 @@ extern void
const struct regcache *regcache);
/* Get the correct Arm target description with given FP hardware type. */
const target_desc *arm_read_description (arm_fp_type fp_type);
const target_desc *arm_read_description (arm_fp_type fp_type, bool tls);
/* Get the correct Arm M-Profile target description with given hardware
type. */