On 21/10/26 08:46, Stian Halseth wrote:
Implement the eight AES round instructions by using QEMU's shared
crypto/aes-round.h, gated behind the crypto CPU feature:
- AES_EROUND01/23 and last variants
- AES_DROUND01/23 and last variants

Maybe add something in the lines of:

  "Next commit will complete the feature and expose its
   availability to the guest by setting the AES bit in CFR."

Based on OSA (Oracle SPARC Architecture) 2011, section 7.3:
AES Cryptographic Operations (4 operand)

Tested-by: Philippe Mathieu-Daudé <[email protected]>
Signed-off-by: Stian Halseth <[email protected]>
---
  target/sparc/crypto_helper.c | 89 ++++++++++++++++++++++++++++++++++++
  target/sparc/helper.h        |  8 ++++
  target/sparc/insns.decode    |  9 ++++
  target/sparc/meson.build     |  2 +-
  target/sparc/translate.c     | 16 +++++++
  5 files changed, 123 insertions(+), 1 deletion(-)
  create mode 100644 target/sparc/crypto_helper.c

Reviewed-by: Philippe Mathieu-Daudé <[email protected]>

Reply via email to