yeahuh / rpms / qemu-kvm

Forked from rpms/qemu-kvm 2 years ago
Clone
b38b0f
From e7ab1956612806185d87682945e0c54989fa6aaa Mon Sep 17 00:00:00 2001
b38b0f
From: David Hildenbrand <david@redhat.com>
b38b0f
Date: Wed, 22 May 2019 08:03:58 +0100
b38b0f
Subject: [PATCH 06/12] s390x/cpumodel: vector enhancements
b38b0f
b38b0f
RH-Author: David Hildenbrand <david@redhat.com>
b38b0f
Message-id: <20190522080402.20173-7-david@redhat.com>
b38b0f
Patchwork-id: 88159
b38b0f
O-Subject: [RHEL8.1 qemu-kvm PATCH v2 06/10] s390x/cpumodel: vector enhancements
b38b0f
Bugzilla: 1660912
b38b0f
RH-Acked-by: Cornelia Huck <cohuck@redhat.com>
b38b0f
RH-Acked-by: Jens Freimann <jfreimann@redhat.com>
b38b0f
RH-Acked-by: Thomas Huth <thuth@redhat.com>
b38b0f
b38b0f
Add vector enhancements to the cpu model.
b38b0f
b38b0f
Signed-off-by: Christian Borntraeger <borntraeger@de.ibm.com>
b38b0f
Reviewed-by: David Hildenbrand <david@redhat.com>
b38b0f
Message-Id: <20190429090250.7648-6-borntraeger@de.ibm.com>
b38b0f
Signed-off-by: Cornelia Huck <cohuck@redhat.com>
b38b0f
(cherry picked from commit 54d65de0b525272edfa66eb75c3f67b183f8aff4)
b38b0f
Signed-off-by: David Hildenbrand <david@redhat.com>
b38b0f
Signed-off-by: Danilo C. L. de Paula <ddepaula@redhat.com>
b38b0f
---
b38b0f
 target/s390x/cpu_features.c     | 2 ++
b38b0f
 target/s390x/cpu_features_def.h | 2 ++
b38b0f
 2 files changed, 4 insertions(+)
b38b0f
b38b0f
diff --git a/target/s390x/cpu_features.c b/target/s390x/cpu_features.c
b38b0f
index 154e2bb..3587325 100644
b38b0f
--- a/target/s390x/cpu_features.c
b38b0f
+++ b/target/s390x/cpu_features.c
b38b0f
@@ -108,6 +108,8 @@ static const S390FeatDef s390_features[] = {
b38b0f
     FEAT_INIT("irbm", S390_FEAT_TYPE_STFL, 145, "Insert-reference-bits-multiple facility"),
b38b0f
     FEAT_INIT("msa8-base", S390_FEAT_TYPE_STFL, 146, "Message-security-assist-extension-8 facility (excluding subfunctions)"),
b38b0f
     FEAT_INIT("cmmnt", S390_FEAT_TYPE_STFL, 147, "CMM: ESSA-enhancement (no translate) facility"),
b38b0f
+    FEAT_INIT("vxeh2", S390_FEAT_TYPE_STFL, 148, "Vector Enhancements facility 2"),
b38b0f
+    FEAT_INIT("vxbeh", S390_FEAT_TYPE_STFL, 152, "Vector BCD enhancements facility 1"),
b38b0f
     FEAT_INIT("msa9-base", S390_FEAT_TYPE_STFL, 155, "Message-security-assist-extension-9 facility (excluding subfunctions)"),
b38b0f
     FEAT_INIT("etoken", S390_FEAT_TYPE_STFL, 156, "Etoken facility"),
b38b0f
 
b38b0f
diff --git a/target/s390x/cpu_features_def.h b/target/s390x/cpu_features_def.h
b38b0f
index 0307848..ce2223c 100644
b38b0f
--- a/target/s390x/cpu_features_def.h
b38b0f
+++ b/target/s390x/cpu_features_def.h
b38b0f
@@ -96,6 +96,8 @@ typedef enum {
b38b0f
     S390_FEAT_INSERT_REFERENCE_BITS_MULT,
b38b0f
     S390_FEAT_MSA_EXT_8,
b38b0f
     S390_FEAT_CMM_NT,
b38b0f
+    S390_FEAT_VECTOR_ENH2,
b38b0f
+    S390_FEAT_VECTOR_BCD_ENH,
b38b0f
     S390_FEAT_MSA_EXT_9,
b38b0f
     S390_FEAT_ETOKEN,
b38b0f
 
b38b0f
-- 
b38b0f
1.8.3.1
b38b0f