OSDN Git Service

target/arm: Convert aes and sm4 to gvec helpers
authorRichard Henderson <richard.henderson@linaro.org>
Thu, 14 May 2020 21:28:26 +0000 (14:28 -0700)
committerPeter Maydell <peter.maydell@linaro.org>
Fri, 5 Jun 2020 16:23:09 +0000 (17:23 +0100)
commita04b68e1d4c4f0cd5cd7542697b1b230b84532f5
treebe6fadf55ef1bba13499d60949ccd2ec14174f2d
parentfc417e5b5784eec92163ad36140ab029c6661b5f
target/arm: Convert aes and sm4 to gvec helpers

With this conversion, we will be able to use the same helpers
with sve.  In particular, pass 3 vector parameters for the
3-operand operations; for advsimd the destination register
is also an input.

This also fixes a bug in which we failed to clear the high bits
of the SVE register after an AdvSIMD operation.

Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
Message-id: 20200514212831.31248-2-richard.henderson@linaro.org
Reviewed-by: Peter Maydell <peter.maydell@linaro.org>
Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
target/arm/crypto_helper.c
target/arm/helper.h
target/arm/translate-a64.c
target/arm/translate.c
target/arm/vec_helper.c
target/arm/vec_internal.h [new file with mode: 0644]