diff options
author | Jason A. Donenfeld <Jason@zx2c4.com> | 2022-09-22 17:38:20 +0200 |
---|---|---|
committer | Thomas Huth <thuth@redhat.com> | 2022-09-23 15:18:52 +0200 |
commit | 9f17bfdab422887807cbd5260ed6b0b6e54ddb33 (patch) | |
tree | 405ec2df8f668a3d5d9acf973c45af27b4f039b2 /hw/s390x | |
parent | ab9ccfa8502435502c74fc55cec8ae6eda879919 (diff) | |
download | qemu-9f17bfdab422887807cbd5260ed6b0b6e54ddb33.zip qemu-9f17bfdab422887807cbd5260ed6b0b6e54ddb33.tar.gz qemu-9f17bfdab422887807cbd5260ed6b0b6e54ddb33.tar.bz2 |
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>
Diffstat (limited to 'hw/s390x')
-rw-r--r-- | hw/s390x/s390-virtio-ccw.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/hw/s390x/s390-virtio-ccw.c b/hw/s390x/s390-virtio-ccw.c index 9a2467c..e18b816 100644 --- a/hw/s390x/s390-virtio-ccw.c +++ b/hw/s390x/s390-virtio-ccw.c @@ -803,8 +803,11 @@ DEFINE_CCW_MACHINE(7_2, "7.2", true); static void ccw_machine_7_1_instance_options(MachineState *machine) { + static const S390FeatInit qemu_cpu_feat = { S390_FEAT_LIST_QEMU_V7_1 }; + ccw_machine_7_2_instance_options(machine); s390_cpudef_featoff_greater(16, 1, S390_FEAT_PAIE); + s390_set_qemu_cpu_model(0x8561, 15, 1, qemu_cpu_feat); } static void ccw_machine_7_1_class_options(MachineClass *mc) |