[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH v6 61/82] target/arm: Implement SVE2 crypto unary operations
From: |
Richard Henderson |
Subject: |
[PATCH v6 61/82] target/arm: Implement SVE2 crypto unary operations |
Date: |
Fri, 30 Apr 2021 13:25:49 -0700 |
Signed-off-by: Richard Henderson <richard.henderson@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 73f1348313..6ab13b2f78 100644
--- a/target/arm/sve.decode
+++ b/target/arm/sve.decode
@@ -1509,3 +1509,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 8952990453..5219b93abd 100644
--- a/target/arm/translate-sve.c
+++ b/target/arm/translate-sve.c
@@ -8072,3 +8072,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.25.1
- [PATCH v6 76/82] target/arm: Remove unused fpst from VDOT_scalar, (continued)
- [PATCH v6 76/82] target/arm: Remove unused fpst from VDOT_scalar, Richard Henderson, 2021/04/30
- [PATCH v6 70/82] target/arm: Implement SVE2 LD1RO, Richard Henderson, 2021/04/30
- [PATCH v6 68/82] target/arm: Implement SVE2 FLOGB, Richard Henderson, 2021/04/30
- [PATCH v6 72/82] target/arm: Implement SVE2 bitwise shift immediate, Richard Henderson, 2021/04/30
- [PATCH v6 73/82] target/arm: Implement SVE2 fp multiply-add long, Richard Henderson, 2021/04/30
- [PATCH v6 78/82] target/arm: Split decode of VSDOT and VUDOT, Richard Henderson, 2021/04/30
- [PATCH v6 75/82] target/arm: Split out do_neon_ddda_fpst, Richard Henderson, 2021/04/30
- [PATCH v6 62/82] target/arm: Implement SVE2 crypto destructive binary operations, Richard Henderson, 2021/04/30
- [PATCH v6 66/82] target/arm: Implement SVE2 FCVTLT, Richard Henderson, 2021/04/30
- [PATCH v6 69/82] target/arm: Share table of sve load functions, Richard Henderson, 2021/04/30
- [PATCH v6 61/82] target/arm: Implement SVE2 crypto unary operations,
Richard Henderson <=
- [PATCH v6 63/82] target/arm: Implement SVE2 crypto constructive binary operations, Richard Henderson, 2021/04/30
- [PATCH v6 67/82] target/arm: Implement SVE2 FCVTXNT, FCVTX, Richard Henderson, 2021/04/30
- [PATCH v6 79/82] target/arm: Implement aarch32 VSUDOT, VUSDOT, Richard Henderson, 2021/04/30
- [PATCH v6 80/82] target/arm: Implement integer matrix multiply accumulate, Richard Henderson, 2021/04/30
- [PATCH v6 82/82] target/arm: Enable SVE2 and related extensions, Richard Henderson, 2021/04/30
- [PATCH v6 81/82] linux-user/aarch64: Enable hwcap bits for sve2 and related extensions, Richard Henderson, 2021/04/30