File tree Expand file tree Collapse file tree 4 files changed +28
-0
lines changed Expand file tree Collapse file tree 4 files changed +28
-0
lines changed Original file line number Diff line number Diff line change @@ -332,6 +332,10 @@ config HAVE_MARCH_Z16_FEATURES
332332 def_bool n
333333 select HAVE_MARCH_Z15_FEATURES
334334
335+ config HAVE_MARCH_Z17_FEATURES
336+ def_bool n
337+ select HAVE_MARCH_Z16_FEATURES
338+
335339choice
336340 prompt "Processor type"
337341 default MARCH_Z196
@@ -397,6 +401,14 @@ config MARCH_Z16
397401 Select this to enable optimizations for IBM z16 (3931 and
398402 3932 series).
399403
404+ config MARCH_Z17
405+ bool "IBM z17"
406+ select HAVE_MARCH_Z17_FEATURES
407+ depends on $(cc-option,-march=z17)
408+ help
409+ Select this to enable optimizations for IBM z17 (9175 and
410+ 9176 series).
411+
400412endchoice
401413
402414config MARCH_Z10_TUNE
@@ -420,6 +432,9 @@ config MARCH_Z15_TUNE
420432config MARCH_Z16_TUNE
421433 def_bool TUNE_Z16 || MARCH_Z16 && TUNE_DEFAULT
422434
435+ config MARCH_Z17_TUNE
436+ def_bool TUNE_Z17 || MARCH_Z17 && TUNE_DEFAULT
437+
423438choice
424439 prompt "Tune code generation"
425440 default TUNE_DEFAULT
@@ -464,6 +479,10 @@ config TUNE_Z16
464479 bool "IBM z16"
465480 depends on $(cc-option,-mtune=z16)
466481
482+ config TUNE_Z17
483+ bool "IBM z17"
484+ depends on $(cc-option,-mtune=z17)
485+
467486endchoice
468487
469488config 64BIT
Original file line number Diff line number Diff line change @@ -48,6 +48,7 @@ mflags-$(CONFIG_MARCH_Z13) := -march=z13
4848mflags-$(CONFIG_MARCH_Z14) := -march=z14
4949mflags-$(CONFIG_MARCH_Z15) := -march=z15
5050mflags-$(CONFIG_MARCH_Z16) := -march=z16
51+ mflags-$(CONFIG_MARCH_Z17) := -march=z17
5152
5253export CC_FLAGS_MARCH := $(mflags-y )
5354
@@ -61,6 +62,7 @@ cflags-$(CONFIG_MARCH_Z13_TUNE) += -mtune=z13
6162cflags-$(CONFIG_MARCH_Z14_TUNE) += -mtune=z14
6263cflags-$(CONFIG_MARCH_Z15_TUNE) += -mtune=z15
6364cflags-$(CONFIG_MARCH_Z16_TUNE) += -mtune=z16
65+ cflags-$(CONFIG_MARCH_Z17_TUNE) += -mtune=z17
6466
6567cflags-y += -Wa,-I$(srctree ) /arch/$(ARCH ) /include
6668
Original file line number Diff line number Diff line change 3333#define MARCH_HAS_Z16_FEATURES 1
3434#endif
3535
36+ #ifdef CONFIG_HAVE_MARCH_Z17_FEATURES
37+ #define MARCH_HAS_Z17_FEATURES 1
38+ #endif
39+
3640#endif /* __DECOMPRESSOR */
3741
3842#endif /* __ASM_S390_MARCH_H */
Original file line number Diff line number Diff line change @@ -53,6 +53,9 @@ static struct facility_def facility_defs[] = {
5353#endif
5454#ifdef CONFIG_HAVE_MARCH_Z15_FEATURES
5555 61 , /* miscellaneous-instruction-extension 3 */
56+ #endif
57+ #ifdef CONFIG_HAVE_MARCH_Z17_FEATURES
58+ 84 , /* miscellaneous-instruction-extension 4 */
5659#endif
5760 -1 /* END */
5861 }
You can’t perform that action at this time.
0 commit comments