{"cssc", AARCH64_FEATURE (CSSC), AARCH64_NO_FEATURES},
{"chk", AARCH64_FEATURE (CHK), AARCH64_NO_FEATURES},
{"gcs", AARCH64_FEATURE (GCS), AARCH64_NO_FEATURES},
+ {"the", AARCH64_FEATURE (THE), AARCH64_NO_FEATURES},
{NULL, AARCH64_NO_FEATURES, AARCH64_NO_FEATURES},
};
@tab Enable Check Feature Status Extension.
@item @code{gcs} @tab N/A @tab No
@tab Enable Guarded Control Stack Extension.
+@item @code{the} @tab ARMv8-A/Armv9-A @tab ARMv8.9-A/Armv9.4-A or later
+ @tab Enable Translation Hardening extension.
+
@end multitable
@node AArch64 Syntax
[^:]*: d5189923 msr pmsnevfr_el1, x3
[^:]*: d53c1242 mrs x2, hcrx_el2
[^:]*: d51c1243 msr hcrx_el2, x3
+[^:]*: d538d0c2 mrs x2, rcwmask_el1
+[^:]*: d518d0c3 msr rcwmask_el1, x3
+[^:]*: d538d062 mrs x2, rcwsmask_el1
+[^:]*: d518d063 msr rcwsmask_el1, x3
rwreg pmsnevfr_el1
rwreg hcrx_el2
+
+ .arch armv8-a+the
+
+ rwreg rcwmask_el1
+ rwreg rcwsmask_el1
AARCH64_FEATURE_GCS,
/* SME2. */
AARCH64_FEATURE_SME2,
+ /* Translation Hardening Extension. */
+ AARCH64_FEATURE_THE,
AARCH64_NUM_FEATURES
};
&& AARCH64_CPU_HAS_FEATURE (features, PREDRES))
return true;
+ if ((reg_value == CPENC (3,0,13,0,3)
+ || CPENC (3,0,13,0,6))
+ && AARCH64_CPU_HAS_FEATURE (features, THE))
+ return true;
+
return false;
}
SYSREG ("prlar_el2", CPENC (3,4,6,8,1), F_ARCHEXT, AARCH64_FEATURE (V8R))
SYSREG ("prselr_el1", CPENC (3,0,6,2,1), F_ARCHEXT, AARCH64_FEATURE (V8R))
SYSREG ("prselr_el2", CPENC (3,4,6,2,1), F_ARCHEXT, AARCH64_FEATURE (V8R))
+ SYSREG ("rcwmask_el1", CPENC (3,0,13,0,6), F_ARCHEXT, AARCH64_FEATURE (THE))
+ SYSREG ("rcwsmask_el1", CPENC (3,0,13,0,3), F_ARCHEXT, AARCH64_FEATURE (THE))
SYSREG ("revidr_el1", CPENC (3,0,0,0,6), F_REG_READ, AARCH64_NO_FEATURES)
SYSREG ("rgsr_el1", CPENC (3,0,1,0,5), F_ARCHEXT, AARCH64_FEATURE (MEMTAG))
SYSREG ("rmr_el1", CPENC (3,0,12,0,2), 0, AARCH64_NO_FEATURES)
AARCH64_FEATURE (CHK);
static const aarch64_feature_set aarch64_feature_gcs =
AARCH64_FEATURE (GCS);
+static const aarch64_feature_set aarch64_feature_the =
+ AARCH64_FEATURE (THE);
#define CORE &aarch64_feature_v8
#define FP &aarch64_feature_fp
#define CSSC &aarch64_feature_cssc
#define CHK &aarch64_feature_chk
#define GCS &aarch64_feature_gcs
+#define THE &aarch64_feature_the
#define CORE_INSN(NAME,OPCODE,MASK,CLASS,OP,OPS,QUALS,FLAGS) \
{ NAME, OPCODE, MASK, CLASS, OP, CORE, OPS, QUALS, FLAGS, 0, 0, NULL }