[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH v2 01/24] target/arm: Add isar predicates for FEAT_Debugv8p2
From: |
Richard Henderson |
Subject: |
[PATCH v2 01/24] target/arm: Add isar predicates for FEAT_Debugv8p2 |
Date: |
Mon, 11 Apr 2022 17:33:03 -0700 |
Reviewed-by: Peter Maydell <peter.maydell@linaro.org>
Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
---
target/arm/cpu.h | 15 +++++++++++++++
1 file changed, 15 insertions(+)
diff --git a/target/arm/cpu.h b/target/arm/cpu.h
index 23879de5fa..9c456ff23a 100644
--- a/target/arm/cpu.h
+++ b/target/arm/cpu.h
@@ -4026,6 +4026,11 @@ static inline bool isar_feature_aa32_ssbs(const
ARMISARegisters *id)
return FIELD_EX32(id->id_pfr2, ID_PFR2, SSBS) != 0;
}
+static inline bool isar_feature_aa32_debugv8p2(const ARMISARegisters *id)
+{
+ return FIELD_EX32(id->id_dfr0, ID_DFR0, COPDBG) >= 8;
+}
+
/*
* 64-bit feature tests via id registers.
*/
@@ -4332,6 +4337,11 @@ static inline bool isar_feature_aa64_ssbs(const
ARMISARegisters *id)
return FIELD_EX64(id->id_aa64pfr1, ID_AA64PFR1, SSBS) != 0;
}
+static inline bool isar_feature_aa64_debugv8p2(const ARMISARegisters *id)
+{
+ return FIELD_EX64(id->id_aa64dfr0, ID_AA64DFR0, DEBUGVER) >= 8;
+}
+
static inline bool isar_feature_aa64_sve2(const ARMISARegisters *id)
{
return FIELD_EX64(id->id_aa64zfr0, ID_AA64ZFR0, SVEVER) != 0;
@@ -4415,6 +4425,11 @@ static inline bool isar_feature_any_tts2uxn(const
ARMISARegisters *id)
return isar_feature_aa64_tts2uxn(id) || isar_feature_aa32_tts2uxn(id);
}
+static inline bool isar_feature_any_debugv8p2(const ARMISARegisters *id)
+{
+ return isar_feature_aa64_debugv8p2(id) || isar_feature_aa32_debugv8p2(id);
+}
+
/*
* Forward to the above feature tests given an ARMCPU pointer.
*/
--
2.25.1
- [PATCH v2 00/24] target/arm: 8 new features, A76 and N1, Richard Henderson, 2022/04/11
- [PATCH v2 01/24] target/arm: Add isar predicates for FEAT_Debugv8p2,
Richard Henderson <=
- [PATCH v2 02/24] target/arm: Adjust definition of CONTEXTIDR_EL2, Richard Henderson, 2022/04/11
- [PATCH v2 03/24] target/arm: Move cortex impdef sysregs to cpu_tcg.c, Richard Henderson, 2022/04/11
- [PATCH v2 04/24] target/arm: Update qemu-system-arm -cpu max to cortex-a57, Richard Henderson, 2022/04/11
- [PATCH v2 08/24] target/arm: Use field names for manipulating EL2 and EL3 modes, Richard Henderson, 2022/04/11
- [PATCH v2 13/24] target/arm: Enable SCR and HCR bits for RAS, Richard Henderson, 2022/04/11
- [PATCH v2 17/24] target/arm: Enable FEAT_IESB for -cpu max, Richard Henderson, 2022/04/11
- [PATCH v2 19/24] target/arm: Update ISAR fields for ARMv8.8, Richard Henderson, 2022/04/11
- [PATCH v2 10/24] target/arm: Enable FEAT_Debugv8p4 for -cpu max, Richard Henderson, 2022/04/11
- [PATCH v2 16/24] target/arm: Enable FEAT_RAS for -cpu max, Richard Henderson, 2022/04/11
- [PATCH v2 14/24] target/arm: Implement virtual SError exceptions, Richard Henderson, 2022/04/11