mbox series

[0/6] target/arm: Convert crypto to gvec

Message ID 20200514212831.31248-1-richard.henderson@linaro.org
Headers show
Series target/arm: Convert crypto to gvec | expand

Message

Richard Henderson May 14, 2020, 9:28 p.m. UTC
In addition, this fixes the missing tail clearing for SVE.

The sha1, sha256, sm3 routines that are not fully generalized
are not used by sve -- it only supports the newer algorithms.

I'm not sure that this:

Based-on: <20200508151055.5832-1-richard.henderson@linaro.org>
("tcg vector rotate operations")

will be sufficient for patchew, because it also relies on
today's target-arm.next merge to master.  But you get the idea.


r~


Richard Henderson (6):
  target/arm: Convert aes and sm4 to gvec helpers
  target/arm: Convert rax1 to gvec helpers
  target/arm: Convert sha512 and sm3 to gvec helpers
  target/arm: Convert sha1 and sha256 to gvec helpers
  target/arm: Split helper_crypto_sha1_3reg
  target/arm: Split helper_crypto_sm3tt

 target/arm/helper.h             |  45 ++++--
 target/arm/translate-a64.h      |   3 +
 target/arm/vec_internal.h       |  33 ++++
 target/arm/neon-dp.decode       |  18 ++-
 target/arm/crypto_helper.c      | 267 +++++++++++++++++++++++---------
 target/arm/translate-a64.c      | 198 ++++++++++-------------
 target/arm/translate-neon.inc.c | 172 ++++----------------
 target/arm/translate.c          |  51 +++---
 target/arm/vec_helper.c         |  12 +-
 9 files changed, 403 insertions(+), 396 deletions(-)
 create mode 100644 target/arm/vec_internal.h

-- 
2.20.1

Comments

Peter Maydell June 2, 2020, 7:16 p.m. UTC | #1
On Thu, 14 May 2020 at 22:28, Richard Henderson
<richard.henderson@linaro.org> wrote:
>

> In addition, this fixes the missing tail clearing for SVE.

>

> The sha1, sha256, sm3 routines that are not fully generalized

> are not used by sve -- it only supports the newer algorithms.

>

> I'm not sure that this:

>

> Based-on: <20200508151055.5832-1-richard.henderson@linaro.org>

> ("tcg vector rotate operations")

>

> will be sufficient for patchew, because it also relies on

> today's target-arm.next merge to master.  But you get the idea.


Now I've just applied your latest tcg pull, are all the
prerequisites for this series in master?

thanks
-- PMM
Richard Henderson June 2, 2020, 7:21 p.m. UTC | #2
On 6/2/20 12:16 PM, Peter Maydell wrote:
> On Thu, 14 May 2020 at 22:28, Richard Henderson

> <richard.henderson@linaro.org> wrote:

>>

>> In addition, this fixes the missing tail clearing for SVE.

>>

>> The sha1, sha256, sm3 routines that are not fully generalized

>> are not used by sve -- it only supports the newer algorithms.

>>

>> I'm not sure that this:

>>

>> Based-on: <20200508151055.5832-1-richard.henderson@linaro.org>

>> ("tcg vector rotate operations")

>>

>> will be sufficient for patchew, because it also relies on

>> today's target-arm.next merge to master.  But you get the idea.

> 

> Now I've just applied your latest tcg pull, are all the

> prerequisites for this series in master?


Yes.  My branch rebased and rebuilt without incident.


r~
Peter Maydell June 5, 2020, 1:24 p.m. UTC | #3
On Thu, 14 May 2020 at 22:28, Richard Henderson
<richard.henderson@linaro.org> wrote:
>

> In addition, this fixes the missing tail clearing for SVE.

>

> The sha1, sha256, sm3 routines that are not fully generalized

> are not used by sve -- it only supports the newer algorithms.

>

> I'm not sure that this:

>

> Based-on: <20200508151055.5832-1-richard.henderson@linaro.org>

> ("tcg vector rotate operations")

>

> will be sufficient for patchew, because it also relies on

> today's target-arm.next merge to master.  But you get the idea.

>




Applied to target-arm.next, thanks.

-- PMM