]> git.proxmox.com Git - mirror_qemu.git/commit
target/s390x: support SHA-512 extensions
authorJason A. Donenfeld <Jason@zx2c4.com>
Thu, 22 Sep 2022 15:38:20 +0000 (17:38 +0200)
committerThomas Huth <thuth@redhat.com>
Fri, 23 Sep 2022 13:18:52 +0000 (15:18 +0200)
commit9f17bfdab422887807cbd5260ed6b0b6e54ddb33
tree405ec2df8f668a3d5d9acf973c45af27b4f039b2
parentab9ccfa8502435502c74fc55cec8ae6eda879919
target/s390x: support SHA-512 extensions

In order to fully support MSA_EXT_5, we have to support the SHA-512
special instructions. So implement those.

The implementation began as something TweetNacl-like, and then was
adjusted to be useful here. It's not very beautiful, but it is quite
short and compact, which is what we're going for.

Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
[ restructure, add missing exception, add comments, fixup CPU model ]
Signed-off-by: David Hildenbrand <david@redhat.com>
Message-Id: <20220922153820.221811-1-david@redhat.com>
Signed-off-by: Thomas Huth <thuth@redhat.com>
hw/s390x/s390-virtio-ccw.c
target/s390x/gen-features.c
target/s390x/tcg/crypto_helper.c