aboutsummaryrefslogtreecommitdiff
path: root/target/arm/cpu.h
diff options
context:
space:
mode:
authorRichard Henderson <richard.henderson@linaro.org>2021-05-24 18:02:43 -0700
committerPeter Maydell <peter.maydell@linaro.org>2021-05-25 16:01:43 +0100
commitcb9c33b817d8c6057f6f6a190e964d2c1e26f2a2 (patch)
tree3413c8fb714899f6b180bbf7b06943047557dab6 /target/arm/cpu.h
parent2df3ca5599055d891940153a1fd544a77a231e80 (diff)
downloadqemu-cb9c33b817d8c6057f6f6a190e964d2c1e26f2a2.zip
qemu-cb9c33b817d8c6057f6f6a190e964d2c1e26f2a2.tar.gz
qemu-cb9c33b817d8c6057f6f6a190e964d2c1e26f2a2.tar.bz2
target/arm: Implement SVE2 bitwise permute
Reviewed-by: Peter Maydell <peter.maydell@linaro.org> Signed-off-by: Richard Henderson <richard.henderson@linaro.org> Message-id: 20210525010358.152808-18-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.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/target/arm/cpu.h b/target/arm/cpu.h
index 6e149d8..39919a7 100644
--- a/target/arm/cpu.h
+++ b/target/arm/cpu.h
@@ -4251,6 +4251,11 @@ static inline bool isar_feature_aa64_sve2_pmull128(const ARMISARegisters *id)
return FIELD_EX64(id->id_aa64zfr0, ID_AA64ZFR0, AES) >= 2;
}
+static inline bool isar_feature_aa64_sve2_bitperm(const ARMISARegisters *id)
+{
+ return FIELD_EX64(id->id_aa64zfr0, ID_AA64ZFR0, BITPERM) != 0;
+}
+
/*
* Feature tests for "does this exist in either 32-bit or 64-bit?"
*/