On 20/10/26 16:55, Stian Halseth wrote:
ASR 26 returns a Compatibility Feature Register (CFR) when the
crypto feature is on.  Without the crypto feature, a read keeps
strand status as before.

Reports AES, SHA1, SHA256, SHA512, CRC32C.

IIUC to keep the series bisectable, this patch should be
re-ordered *after* the "Add FOO instruction" ones, otherwise:

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

Guests can read the CFR before using each crypto instruction.

Based on OSA (Oracle SPARC Architecture) 2011:
- 5.5 (Ancillary State Registers), table 5-8
- 5.5.11 Compatibility Feature Register (CFR), table 5-15

Signed-off-by: Stian Halseth <[email protected]>
---
  target/sparc/insns.decode |  5 ++++-
  target/sparc/translate.c  | 15 +++++++++++++++
  2 files changed, 19 insertions(+), 1 deletion(-)

Reply via email to