mirror of
git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2025-09-18 22:14:16 +00:00
s390: Allow to compile with z17 optimizations
Add config and compile options which allow to compile with z17 optimizations if the compiler supports it. Add the miscellaneous-instruction-extension 4 facility to the list of facilities for z17. Reviewed-by: Heiko Carstens <hca@linux.ibm.com> Signed-off-by: Vasily Gorbik <gor@linux.ibm.com> Signed-off-by: Heiko Carstens <hca@linux.ibm.com>
This commit is contained in:
parent
8231a0e632
commit
c51ea9888e
4 changed files with 28 additions and 0 deletions
|
@ -332,6 +332,10 @@ config HAVE_MARCH_Z16_FEATURES
|
||||||
def_bool n
|
def_bool n
|
||||||
select HAVE_MARCH_Z15_FEATURES
|
select HAVE_MARCH_Z15_FEATURES
|
||||||
|
|
||||||
|
config HAVE_MARCH_Z17_FEATURES
|
||||||
|
def_bool n
|
||||||
|
select HAVE_MARCH_Z16_FEATURES
|
||||||
|
|
||||||
choice
|
choice
|
||||||
prompt "Processor type"
|
prompt "Processor type"
|
||||||
default MARCH_Z196
|
default MARCH_Z196
|
||||||
|
@ -397,6 +401,14 @@ config MARCH_Z16
|
||||||
Select this to enable optimizations for IBM z16 (3931 and
|
Select this to enable optimizations for IBM z16 (3931 and
|
||||||
3932 series).
|
3932 series).
|
||||||
|
|
||||||
|
config MARCH_Z17
|
||||||
|
bool "IBM z17"
|
||||||
|
select HAVE_MARCH_Z17_FEATURES
|
||||||
|
depends on $(cc-option,-march=z17)
|
||||||
|
help
|
||||||
|
Select this to enable optimizations for IBM z17 (9175 and
|
||||||
|
9176 series).
|
||||||
|
|
||||||
endchoice
|
endchoice
|
||||||
|
|
||||||
config MARCH_Z10_TUNE
|
config MARCH_Z10_TUNE
|
||||||
|
@ -420,6 +432,9 @@ config MARCH_Z15_TUNE
|
||||||
config MARCH_Z16_TUNE
|
config MARCH_Z16_TUNE
|
||||||
def_bool TUNE_Z16 || MARCH_Z16 && TUNE_DEFAULT
|
def_bool TUNE_Z16 || MARCH_Z16 && TUNE_DEFAULT
|
||||||
|
|
||||||
|
config MARCH_Z17_TUNE
|
||||||
|
def_bool TUNE_Z17 || MARCH_Z17 && TUNE_DEFAULT
|
||||||
|
|
||||||
choice
|
choice
|
||||||
prompt "Tune code generation"
|
prompt "Tune code generation"
|
||||||
default TUNE_DEFAULT
|
default TUNE_DEFAULT
|
||||||
|
@ -464,6 +479,10 @@ config TUNE_Z16
|
||||||
bool "IBM z16"
|
bool "IBM z16"
|
||||||
depends on $(cc-option,-mtune=z16)
|
depends on $(cc-option,-mtune=z16)
|
||||||
|
|
||||||
|
config TUNE_Z17
|
||||||
|
bool "IBM z17"
|
||||||
|
depends on $(cc-option,-mtune=z17)
|
||||||
|
|
||||||
endchoice
|
endchoice
|
||||||
|
|
||||||
config 64BIT
|
config 64BIT
|
||||||
|
|
|
@ -48,6 +48,7 @@ mflags-$(CONFIG_MARCH_Z13) := -march=z13
|
||||||
mflags-$(CONFIG_MARCH_Z14) := -march=z14
|
mflags-$(CONFIG_MARCH_Z14) := -march=z14
|
||||||
mflags-$(CONFIG_MARCH_Z15) := -march=z15
|
mflags-$(CONFIG_MARCH_Z15) := -march=z15
|
||||||
mflags-$(CONFIG_MARCH_Z16) := -march=z16
|
mflags-$(CONFIG_MARCH_Z16) := -march=z16
|
||||||
|
mflags-$(CONFIG_MARCH_Z17) := -march=z17
|
||||||
|
|
||||||
export CC_FLAGS_MARCH := $(mflags-y)
|
export CC_FLAGS_MARCH := $(mflags-y)
|
||||||
|
|
||||||
|
@ -61,6 +62,7 @@ cflags-$(CONFIG_MARCH_Z13_TUNE) += -mtune=z13
|
||||||
cflags-$(CONFIG_MARCH_Z14_TUNE) += -mtune=z14
|
cflags-$(CONFIG_MARCH_Z14_TUNE) += -mtune=z14
|
||||||
cflags-$(CONFIG_MARCH_Z15_TUNE) += -mtune=z15
|
cflags-$(CONFIG_MARCH_Z15_TUNE) += -mtune=z15
|
||||||
cflags-$(CONFIG_MARCH_Z16_TUNE) += -mtune=z16
|
cflags-$(CONFIG_MARCH_Z16_TUNE) += -mtune=z16
|
||||||
|
cflags-$(CONFIG_MARCH_Z17_TUNE) += -mtune=z17
|
||||||
|
|
||||||
cflags-y += -Wa,-I$(srctree)/arch/$(ARCH)/include
|
cflags-y += -Wa,-I$(srctree)/arch/$(ARCH)/include
|
||||||
|
|
||||||
|
|
|
@ -33,6 +33,10 @@
|
||||||
#define MARCH_HAS_Z16_FEATURES 1
|
#define MARCH_HAS_Z16_FEATURES 1
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#ifdef CONFIG_HAVE_MARCH_Z17_FEATURES
|
||||||
|
#define MARCH_HAS_Z17_FEATURES 1
|
||||||
|
#endif
|
||||||
|
|
||||||
#endif /* __DECOMPRESSOR */
|
#endif /* __DECOMPRESSOR */
|
||||||
|
|
||||||
#endif /* __ASM_S390_MARCH_H */
|
#endif /* __ASM_S390_MARCH_H */
|
||||||
|
|
|
@ -53,6 +53,9 @@ static struct facility_def facility_defs[] = {
|
||||||
#endif
|
#endif
|
||||||
#ifdef CONFIG_HAVE_MARCH_Z15_FEATURES
|
#ifdef CONFIG_HAVE_MARCH_Z15_FEATURES
|
||||||
61, /* miscellaneous-instruction-extension 3 */
|
61, /* miscellaneous-instruction-extension 3 */
|
||||||
|
#endif
|
||||||
|
#ifdef CONFIG_HAVE_MARCH_Z17_FEATURES
|
||||||
|
84, /* miscellaneous-instruction-extension 4 */
|
||||||
#endif
|
#endif
|
||||||
-1 /* END */
|
-1 /* END */
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue