Andrew Geissler | 517393d | 2023-01-13 08:55:19 -0600 | [diff] [blame] | 1 | # Settings for the GCC(1) cpu-type "x86-64-v3": |
| 2 | # |
| 3 | # CPUs with AVX, AVX2, BMI1, BMI2, F16C, FMA, LZCNT, MOVBE, XSAVE. |
| 4 | # (but not AVX512). |
| 5 | # See https://www.phoronix.com/news/GCC-11-x86-64-Feature-Levels for details. |
| 6 | # |
| 7 | # This tune is recommended for Intel Haswell/AMD Excavator CPUs (and later). |
| 8 | # |
| 9 | DEFAULTTUNE ?= "x86-64-v3" |
| 10 | |
| 11 | # Include the previous tune to pull in PACKAGE_EXTRA_ARCHS |
| 12 | require conf/machine/include/x86/tune-corei7.inc |
| 13 | |
| 14 | # Extra tune features |
| 15 | TUNEVALID[x86-64-v3] = "Enable x86-64-v3 specific processor optimizations" |
| 16 | TUNE_CCARGS .= "${@bb.utils.contains('TUNE_FEATURES', 'x86-64-v3', ' -march=x86-64-v3', '', d)}" |
| 17 | |
| 18 | # Extra tune selections |
| 19 | AVAILTUNES += "x86-64-v3" |
| 20 | TUNE_FEATURES:tune-x86-64-v3 = "${TUNE_FEATURES:tune-x86-64} x86-64-v3" |
| 21 | BASE_LIB:tune-x86-64-v3 = "lib64" |
| 22 | TUNE_PKGARCH:tune-x86-64-v3 = "x86-64-v3" |
| 23 | PACKAGE_EXTRA_ARCHS:tune-x86-64-v3 = "${PACKAGE_EXTRA_ARCHS:tune-corei7-64} x86-64-v3" |
| 24 | QEMU_EXTRAOPTIONS_x86-64-v3 = " -cpu Skylake-Client,check=false" |
| 25 | |
| 26 | AVAILTUNES += "x86-64-v3-x32" |
| 27 | TUNE_FEATURES:tune-x86-64-v3-x32 = "${TUNE_FEATURES:tune-x86-64-x32} x86-64-v3" |
| 28 | BASE_LIB:tune-x86-64-v3-x32 = "libx32" |
| 29 | TUNE_PKGARCH:tune-x86-64-v3-x32 = "x86-64-v3-x32" |
| 30 | PACKAGE_EXTRA_ARCHS:tune-x86-64-v3-x32 = "${PACKAGE_EXTRA_ARCHS:tune-corei7-64-x32} x86-64-v3-x32" |
| 31 | QEMU_EXTRAOPTIONS_x86-64-v3-x32 = " -cpu Skylake-Client,check=false" |