Skip to content

Commit 30e398f

Browse files
borntraegerhuth
authored andcommitted
s390x/cpumodel: Add more feature to gen16 default model
Add the new gen16 features to the default model and fence them for machine version 6.1 and earlier. Signed-off-by: Christian Borntraeger <[email protected]> Reviewed-by: David Hildenbrand <[email protected]> Message-Id: <[email protected]> Signed-off-by: Thomas Huth <[email protected]>
1 parent ed3288f commit 30e398f

File tree

2 files changed

+12
-1
lines changed

2 files changed

+12
-1
lines changed

hw/s390x/s390-virtio-ccw.c

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -803,6 +803,11 @@ DEFINE_CCW_MACHINE(6_2, "6.2", true);
803803
static void ccw_machine_6_1_instance_options(MachineState *machine)
804804
{
805805
ccw_machine_6_2_instance_options(machine);
806+
s390_cpudef_featoff_greater(16, 1, S390_FEAT_NNPA);
807+
s390_cpudef_featoff_greater(16, 1, S390_FEAT_VECTOR_PACKED_DECIMAL_ENH2);
808+
s390_cpudef_featoff_greater(16, 1, S390_FEAT_BEAR_ENH);
809+
s390_cpudef_featoff_greater(16, 1, S390_FEAT_RDP);
810+
s390_cpudef_featoff_greater(16, 1, S390_FEAT_PAI);
806811
}
807812

808813
static void ccw_machine_6_1_class_options(MachineClass *mc)

target/s390x/gen-features.c

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -663,7 +663,13 @@ static uint16_t default_GEN15_GA1[] = {
663663
S390_FEAT_ETOKEN,
664664
};
665665

666-
#define default_GEN16_GA1 EmptyFeat
666+
static uint16_t default_GEN16_GA1[] = {
667+
S390_FEAT_NNPA,
668+
S390_FEAT_VECTOR_PACKED_DECIMAL_ENH2,
669+
S390_FEAT_BEAR_ENH,
670+
S390_FEAT_RDP,
671+
S390_FEAT_PAI,
672+
};
667673

668674
/* QEMU (CPU model) features */
669675

0 commit comments

Comments
 (0)