[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH v6 01/42] target/arm: Add isar tests for mte
From: |
Richard Henderson |
Subject: |
[PATCH v6 01/42] target/arm: Add isar tests for mte |
Date: |
Thu, 12 Mar 2020 12:41:38 -0700 |
Signed-off-by: Richard Henderson <address@hidden>
---
target/arm/cpu.h | 10 ++++++++++
1 file changed, 10 insertions(+)
diff --git a/target/arm/cpu.h b/target/arm/cpu.h
index 4ffd991b6f..a77b0d97ac 100644
--- a/target/arm/cpu.h
+++ b/target/arm/cpu.h
@@ -3777,6 +3777,16 @@ static inline bool isar_feature_aa64_bti(const
ARMISARegisters *id)
return FIELD_EX64(id->id_aa64pfr1, ID_AA64PFR1, BT) != 0;
}
+static inline bool isar_feature_aa64_mte_insn_reg(const ARMISARegisters *id)
+{
+ return FIELD_EX64(id->id_aa64pfr1, ID_AA64PFR1, MTE) != 0;
+}
+
+static inline bool isar_feature_aa64_mte(const ARMISARegisters *id)
+{
+ return FIELD_EX64(id->id_aa64pfr1, ID_AA64PFR1, MTE) >= 2;
+}
+
static inline bool isar_feature_aa64_pmu_8_1(const ARMISARegisters *id)
{
return FIELD_EX64(id->id_aa64dfr0, ID_AA64DFR0, PMUVER) >= 4 &&
--
2.20.1
- [PATCH v6 00/42] target/arm: Implement ARMv8.5-MemTag, system mode, Richard Henderson, 2020/03/12
- [PATCH v6 01/42] target/arm: Add isar tests for mte,
Richard Henderson <=
- [PATCH v6 02/42] target/arm: Improve masking of SCR RES0 bits, Richard Henderson, 2020/03/12
- [PATCH v6 03/42] target/arm: Add support for MTE to SCTLR_ELx, Richard Henderson, 2020/03/12
- [PATCH v6 04/42] target/arm: Add support for MTE to HCR_EL2 and SCR_EL3, Richard Henderson, 2020/03/12
- [PATCH v6 05/42] target/arm: Rename DISAS_UPDATE to DISAS_UPDATE_EXIT, Richard Henderson, 2020/03/12
- [PATCH v6 06/42] target/arm: Add DISAS_UPDATE_NOCHAIN, Richard Henderson, 2020/03/12
- [PATCH v6 07/42] target/arm: Add MTE system registers, Richard Henderson, 2020/03/12
- [PATCH v6 08/42] target/arm: Add MTE bits to tb_flags, Richard Henderson, 2020/03/12
- [PATCH v6 11/42] target/arm: Implement the GMI instruction, Richard Henderson, 2020/03/12
- [PATCH v6 10/42] target/arm: Implement the ADDG, SUBG instructions, Richard Henderson, 2020/03/12
- [PATCH v6 09/42] target/arm: Implement the IRG instruction, Richard Henderson, 2020/03/12