aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPeter Maydell <peter.maydell@linaro.org>2023-10-24 17:35:10 +0100
committerPeter Maydell <peter.maydell@linaro.org>2023-10-27 11:44:32 +0100
commit1036ce4e6a2fa0f865e2e6514d198db931b5510f (patch)
treeec545b794e202417a29a91fe04ea651b6aad2104
parente677d7d47062b6714aeffd92cbc015d4ae2b9eaf (diff)
downloadqemu-1036ce4e6a2fa0f865e2e6514d198db931b5510f.zip
qemu-1036ce4e6a2fa0f865e2e6514d198db931b5510f.tar.gz
qemu-1036ce4e6a2fa0f865e2e6514d198db931b5510f.tar.bz2
target/arm: Move ID_AA64DFR* feature tests together
Move all the ID_AA64DFR* feature test functions together. Signed-off-by: Peter Maydell <peter.maydell@linaro.org> Reviewed-by: Philippe Mathieu-Daudé <philmd@linaro.org> Reviewed-by: Richard Henderson <richard.henderson@linaro.org> Message-id: 20231024163510.2972081-7-peter.maydell@linaro.org
-rw-r--r--target/arm/cpu-features.h10
1 files changed, 5 insertions, 5 deletions
diff --git a/target/arm/cpu-features.h b/target/arm/cpu-features.h
index 0ed05b8..66212cd 100644
--- a/target/arm/cpu-features.h
+++ b/target/arm/cpu-features.h
@@ -857,6 +857,11 @@ 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_doublelock(const ARMISARegisters *id)
+{
+ return FIELD_SEX64(id->id_aa64dfr0, ID_AA64DFR0, DOUBLELOCK) >= 0;
+}
+
static inline bool isar_feature_aa64_sve2(const ARMISARegisters *id)
{
return FIELD_EX64(id->id_aa64zfr0, ID_AA64ZFR0, SVEVER) != 0;
@@ -922,11 +927,6 @@ static inline bool isar_feature_aa64_sme_fa64(const ARMISARegisters *id)
return FIELD_EX64(id->id_aa64smfr0, ID_AA64SMFR0, FA64);
}
-static inline bool isar_feature_aa64_doublelock(const ARMISARegisters *id)
-{
- return FIELD_SEX64(id->id_aa64dfr0, ID_AA64DFR0, DOUBLELOCK) >= 0;
-}
-
/*
* Feature tests for "does this exist in either 32-bit or 64-bit?"
*/