aboutsummaryrefslogtreecommitdiffstats
path: root/include/arch/aarch64/arch.h
diff options
context:
space:
mode:
authorAlexei Fedorov <Alexei.Fedorov@arm.com>2020-12-01 13:22:25 +0000
committerAlexei Fedorov <Alexei.Fedorov@arm.com>2020-12-02 13:53:03 +0000
commit0563ab08e892b899905193d4e482440eecd2d36a (patch)
treeeb2a91f643a4aa11787ea25e53ef79e1c1d606d0 /include/arch/aarch64/arch.h
parent91cc872c64d5fdd300dde2bb16a626952b4654db (diff)
downloadplatform_external_arm-trusted-firmware-0563ab08e892b899905193d4e482440eecd2d36a.tar.gz
platform_external_arm-trusted-firmware-0563ab08e892b899905193d4e482440eecd2d36a.tar.bz2
platform_external_arm-trusted-firmware-0563ab08e892b899905193d4e482440eecd2d36a.zip
Aarch64: Add support for FEAT_MTE3
This patch provides the following changes: - Adds definition for FEAT_MTE3 value in ID_AA64PFR1_EL1 register - Enables Memory Tagging Extension for FEAT_MTE3. Change-Id: I735988575466fdc083892ec12c1aee89b5faa472 Signed-off-by: Alexei Fedorov <Alexei.Fedorov@arm.com>
Diffstat (limited to 'include/arch/aarch64/arch.h')
-rw-r--r--include/arch/aarch64/arch.h14
1 files changed, 11 insertions, 3 deletions
diff --git a/include/arch/aarch64/arch.h b/include/arch/aarch64/arch.h
index 33e1134dd..2518e5c27 100644
--- a/include/arch/aarch64/arch.h
+++ b/include/arch/aarch64/arch.h
@@ -266,9 +266,17 @@
#define ID_AA64PFR1_EL1_MTE_SHIFT U(8)
#define ID_AA64PFR1_EL1_MTE_MASK ULL(0xf)
-#define MTE_UNIMPLEMENTED ULL(0)
-#define MTE_IMPLEMENTED_EL0 ULL(1) /* MTE is only implemented at EL0 */
-#define MTE_IMPLEMENTED_ELX ULL(2) /* MTE is implemented at all ELs */
+/* Memory Tagging Extension is not implemented */
+#define MTE_UNIMPLEMENTED U(0)
+/* FEAT_MTE: MTE instructions accessible at EL0 are implemented */
+#define MTE_IMPLEMENTED_EL0 U(1)
+/* FEAT_MTE2: Full MTE is implemented */
+#define MTE_IMPLEMENTED_ELX U(2)
+/*
+ * FEAT_MTE3: MTE is implemented with support for
+ * asymmetric Tag Check Fault handling
+ */
+#define MTE_IMPLEMENTED_ASY U(3)
#define ID_AA64PFR1_MPAM_FRAC_SHIFT ULL(16)
#define ID_AA64PFR1_MPAM_FRAC_MASK ULL(0xf)