On 21/10/26 09:26, Philippe Mathieu-Daudé wrote:
On 21/10/26 08:46, Stian Halseth wrote:
Implement the AES key expansion instructions according to
OSA (Oracle SPARC Architecture) 2011 sections 7.3 and 7.4
and set the AES bit in the CFR.

       ^^^^^^^^^^^^^^^^^^^^^^^^^^
4-operand form (7.3):
- AES_KEXPAND1

3-operand form (7.4):
- AES_KEXPAND0
- AES_KEXPAND2

Like the AES round instructions, they are gated behind the
crypto CPU feature and disabled for sparc32.

~ "The AES feature is now complete and exposed in the Compatibility Feature Register".

Ah this is already described, nevermind :)

Signed-off-by: Stian Halseth <[email protected]>
---
  target/sparc/crypto_helper.c | 58 ++++++++++++++++++++++++++++++++++++
  target/sparc/helper.h        |  3 ++
  target/sparc/insns.decode    |  7 +++++
  target/sparc/translate.c     | 30 ++++++++++++++++++-
  4 files changed, 97 insertions(+), 1 deletion(-)

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

Reply via email to