[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PULL 20/20] s390x/cpumodel: Add more feature to gen16 default model
From: |
Thomas Huth |
Subject: |
[PULL 20/20] s390x/cpumodel: Add more feature to gen16 default model |
Date: |
Tue, 7 Sep 2021 15:14:49 +0200 |
From: Christian Borntraeger <borntraeger@de.ibm.com>
Add the new gen16 features to the default model and fence them for
machine version 6.1 and earlier.
Signed-off-by: Christian Borntraeger <borntraeger@de.ibm.com>
Reviewed-by: David Hildenbrand <david@redhat.com>
Message-Id: <20210907101017.27126-1-borntraeger@de.ibm.com>
Signed-off-by: Thomas Huth <thuth@redhat.com>
---
hw/s390x/s390-virtio-ccw.c | 5 +++++
target/s390x/gen-features.c | 8 +++++++-
2 files changed, 12 insertions(+), 1 deletion(-)
diff --git a/hw/s390x/s390-virtio-ccw.c b/hw/s390x/s390-virtio-ccw.c
index 4d25278cf2..61aeccb163 100644
--- a/hw/s390x/s390-virtio-ccw.c
+++ b/hw/s390x/s390-virtio-ccw.c
@@ -803,6 +803,11 @@ DEFINE_CCW_MACHINE(6_2, "6.2", true);
static void ccw_machine_6_1_instance_options(MachineState *machine)
{
ccw_machine_6_2_instance_options(machine);
+ s390_cpudef_featoff_greater(16, 1, S390_FEAT_NNPA);
+ s390_cpudef_featoff_greater(16, 1, S390_FEAT_VECTOR_PACKED_DECIMAL_ENH2);
+ s390_cpudef_featoff_greater(16, 1, S390_FEAT_BEAR_ENH);
+ s390_cpudef_featoff_greater(16, 1, S390_FEAT_RDP);
+ s390_cpudef_featoff_greater(16, 1, S390_FEAT_PAI);
}
static void ccw_machine_6_1_class_options(MachineClass *mc)
diff --git a/target/s390x/gen-features.c b/target/s390x/gen-features.c
index 7d85322d68..7cb1a6ec10 100644
--- a/target/s390x/gen-features.c
+++ b/target/s390x/gen-features.c
@@ -663,7 +663,13 @@ static uint16_t default_GEN15_GA1[] = {
S390_FEAT_ETOKEN,
};
-#define default_GEN16_GA1 EmptyFeat
+static uint16_t default_GEN16_GA1[] = {
+ S390_FEAT_NNPA,
+ S390_FEAT_VECTOR_PACKED_DECIMAL_ENH2,
+ S390_FEAT_BEAR_ENH,
+ S390_FEAT_RDP,
+ S390_FEAT_PAI,
+};
/* QEMU (CPU model) features */
--
2.27.0
- [PULL 10/20] s390x/mmu_helper: no need to pass access type to mmu_translate_asce(), (continued)
- [PULL 10/20] s390x/mmu_helper: no need to pass access type to mmu_translate_asce(), Thomas Huth, 2021/09/07
- [PULL 12/20] s390x/mmu_helper: move address validation into mmu_translate*(), Thomas Huth, 2021/09/07
- [PULL 11/20] s390x/mmu_helper: fixup mmu_translate() documentation, Thomas Huth, 2021/09/07
- [PULL 14/20] hw/s390x/s390-skeys: use memory mapping to detect which storage keys to migrate, Thomas Huth, 2021/09/07
- [PULL 17/20] hw/s390x/s390-skeys: rename skeys_enabled to skeys_are_enabled, Thomas Huth, 2021/09/07
- [PULL 16/20] hw/s390x/s390-skeys: check if an address is valid before dumping the key, Thomas Huth, 2021/09/07
- [PULL 15/20] hw/s390x/s390-skeys: use memory mapping to detect which storage keys to dump, Thomas Huth, 2021/09/07
- [PULL 18/20] hw/s390x/s390-skeys: lazy storage key enablement under TCG, Thomas Huth, 2021/09/07
- [PULL 19/20] s390x: Replace PAGE_SIZE, PAGE_SHIFT and PAGE_MASK, Thomas Huth, 2021/09/07
- [PULL 13/20] s390x/mmu_helper: avoid setting the storage key if nothing changed, Thomas Huth, 2021/09/07
- [PULL 20/20] s390x/cpumodel: Add more feature to gen16 default model,
Thomas Huth <=
- Re: [PULL 00/20] s390x patches, Peter Maydell, 2021/09/07