diff options
author | Richard Henderson | 2020-06-26 05:30:59 +0200 |
---|---|---|
committer | Peter Maydell | 2020-06-26 15:31:11 +0200 |
commit | c7fd0baac0c24defec66263799faa8618327b352 (patch) | |
tree | 2af21d62fffddd05162e41dbdaf8bc68ec1c786f /target/arm/cpu.h | |
parent | hw/misc/pca9552: Model qdev output GPIOs (diff) | |
download | qemu-c7fd0baac0c24defec66263799faa8618327b352.tar.gz qemu-c7fd0baac0c24defec66263799faa8618327b352.tar.xz qemu-c7fd0baac0c24defec66263799faa8618327b352.zip |
target/arm: Add isar tests for mte
Reviewed-by: Peter Maydell <peter.maydell@linaro.org>
Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
Message-id: 20200626033144.790098-2-richard.henderson@linaro.org
Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
Diffstat (limited to 'target/arm/cpu.h')
-rw-r--r-- | target/arm/cpu.h | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/target/arm/cpu.h b/target/arm/cpu.h index cf66b8c7fb..ff70115801 100644 --- a/target/arm/cpu.h +++ b/target/arm/cpu.h @@ -3814,6 +3814,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 && |