[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PULL 090/114] target/arm: Implement SVE2 crypto unary operations
From: |
Peter Maydell |
Subject: |
[PULL 090/114] target/arm: Implement SVE2 crypto unary operations |
Date: |
Tue, 25 May 2021 16:03:00 +0100 |
From: Richard Henderson <richard.henderson@linaro.org>
Reviewed-by: Peter Maydell <peter.maydell@linaro.org>
Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
Message-id: 20210525010358.152808-69-richard.henderson@linaro.org
Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
---
target/arm/sve.decode | 6 ++++++
target/arm/translate-sve.c | 11 +++++++++++
2 files changed, 17 insertions(+)
diff --git a/target/arm/sve.decode b/target/arm/sve.decode
index 9f037fe5a78..a9cf3bea3e6 100644
--- a/target/arm/sve.decode
+++ b/target/arm/sve.decode
@@ -1558,3 +1558,9 @@ STNT1_zprz 1110010 .. 00 ..... 001 ... ..... ..... \
# SVE2 32-bit scatter non-temporal store (vector plus scalar)
STNT1_zprz 1110010 .. 10 ..... 001 ... ..... ..... \
@rprr_scatter_store xs=0 esz=2 scale=0
+
+### SVE2 Crypto Extensions
+
+# SVE2 crypto unary operations
+# AESMC and AESIMC
+AESMC 01000101 00 10000011100 decrypt:1 00000 rd:5
diff --git a/target/arm/translate-sve.c b/target/arm/translate-sve.c
index ae078b095aa..79b49915492 100644
--- a/target/arm/translate-sve.c
+++ b/target/arm/translate-sve.c
@@ -8148,3 +8148,14 @@ static bool trans_USDOT_zzzz(DisasContext *s,
arg_USDOT_zzzz *a)
}
return true;
}
+
+static bool trans_AESMC(DisasContext *s, arg_AESMC *a)
+{
+ if (!dc_isar_feature(aa64_sve2_aes, s)) {
+ return false;
+ }
+ if (sve_access_check(s)) {
+ gen_gvec_ool_zz(s, gen_helper_crypto_aesmc, a->rd, a->rd, a->decrypt);
+ }
+ return true;
+}
--
2.20.1
- [PULL 077/114] target/arm: Implement SVE2 saturating multiply-add high (indexed), (continued)
- [PULL 077/114] target/arm: Implement SVE2 saturating multiply-add high (indexed), Peter Maydell, 2021/05/25
- [PULL 081/114] target/arm: Implement SVE2 saturating multiply high (indexed), Peter Maydell, 2021/05/25
- [PULL 082/114] target/arm: Implement SVE2 multiply-add long (indexed), Peter Maydell, 2021/05/25
- [PULL 075/114] target/arm: Implement SVE2 integer multiply (indexed), Peter Maydell, 2021/05/25
- [PULL 079/114] target/arm: Implement SVE2 saturating multiply (indexed), Peter Maydell, 2021/05/25
- [PULL 078/114] target/arm: Implement SVE2 saturating multiply-add (indexed), Peter Maydell, 2021/05/25
- [PULL 083/114] target/arm: Implement SVE2 integer multiply long (indexed), Peter Maydell, 2021/05/25
- [PULL 085/114] target/arm: Implement SVE2 complex integer dot product, Peter Maydell, 2021/05/25
- [PULL 086/114] target/arm: Macroize helper_gvec_{s,u}dot_{b,h}, Peter Maydell, 2021/05/25
- [PULL 080/114] target/arm: Implement SVE2 signed saturating doubling multiply high, Peter Maydell, 2021/05/25
- [PULL 090/114] target/arm: Implement SVE2 crypto unary operations,
Peter Maydell <=
- [PULL 073/114] target/arm: Split out formats for 2 vectors + 1 index, Peter Maydell, 2021/05/25
- [PULL 088/114] target/arm: Implement SVE mixed sign dot product (indexed), Peter Maydell, 2021/05/25
- [PULL 087/114] target/arm: Macroize helper_gvec_{s,u}dot_idx_{b,h}, Peter Maydell, 2021/05/25
- [PULL 093/114] target/arm: Implement SVE2 TBL, TBX, Peter Maydell, 2021/05/25
- [PULL 089/114] target/arm: Implement SVE mixed sign dot product, Peter Maydell, 2021/05/25
- [PULL 091/114] target/arm: Implement SVE2 crypto destructive binary operations, Peter Maydell, 2021/05/25
- [PULL 092/114] target/arm: Implement SVE2 crypto constructive binary operations, Peter Maydell, 2021/05/25
- [PULL 094/114] target/arm: Implement SVE2 FCVTNT, Peter Maydell, 2021/05/25
- [PULL 084/114] target/arm: Implement SVE2 complex integer multiply-add (indexed), Peter Maydell, 2021/05/25
- Re: [PULL 000/114] target-arm queue, Peter Maydell, 2021/05/25