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