Patrick Williams | c124f4f | 2015-09-15 14:41:29 -0500 | [diff] [blame] | 1 | # Settings for the GCC(1) cpu-type "corei7": |
| 2 | # |
| 3 | # Intel Core i7 CPU with 64-bit extensions, MMX, SSE, SSE2, SSE3, SSSE3, SSE4.1 |
| 4 | # and SSE4.2 instruction set support. |
| 5 | # |
| 6 | # This tune is recommended for Intel Nehalem and Silvermont (e.g. Bay Trail) CPUs |
| 7 | # (and beyond). |
| 8 | # |
| 9 | DEFAULTTUNE ?= "corei7-64" |
| 10 | |
| 11 | # Pull in the previous tune in to pull in PACKAGE_EXTRA_ARCHS |
| 12 | require conf/machine/include/tune-core2.inc |
| 13 | |
Patrick Williams | d8c66bc | 2016-06-20 12:57:21 -0500 | [diff] [blame^] | 14 | |
Patrick Williams | c124f4f | 2015-09-15 14:41:29 -0500 | [diff] [blame] | 15 | # Extra tune features |
| 16 | TUNEVALID[corei7] = "Enable corei7 specific processor optimizations" |
Patrick Williams | d8c66bc | 2016-06-20 12:57:21 -0500 | [diff] [blame^] | 17 | TUNE_CCARGS .= "${@bb.utils.contains('TUNE_FEATURES', 'corei7', ' -march=corei7 -mtune=corei7 -mfpmath=sse -msse4.2', '', d)}" |
Patrick Williams | c124f4f | 2015-09-15 14:41:29 -0500 | [diff] [blame] | 18 | |
| 19 | # Extra tune selections |
| 20 | AVAILTUNES += "corei7-32" |
| 21 | TUNE_FEATURES_tune-corei7-32 = "${TUNE_FEATURES_tune-x86} corei7" |
| 22 | BASE_LIB_tune-corei7-32 = "lib" |
| 23 | TUNE_PKGARCH_tune-corei7-32 = "corei7-32" |
Patrick Williams | d8c66bc | 2016-06-20 12:57:21 -0500 | [diff] [blame^] | 24 | PACKAGE_EXTRA_ARCHS_tune-corei7-32 = "${PACKAGE_EXTRA_ARCHS_tune-core2-32} corei7-32" |
| 25 | QEMU_EXTRAOPTIONS_corei7-32 = " -cpu Nehalem,check=false" |
Patrick Williams | c124f4f | 2015-09-15 14:41:29 -0500 | [diff] [blame] | 26 | |
| 27 | AVAILTUNES += "corei7-64" |
| 28 | TUNE_FEATURES_tune-corei7-64 = "${TUNE_FEATURES_tune-x86-64} corei7" |
| 29 | BASE_LIB_tune-corei7-64 = "lib64" |
| 30 | TUNE_PKGARCH_tune-corei7-64 = "corei7-64" |
| 31 | PACKAGE_EXTRA_ARCHS_tune-corei7-64 = "${PACKAGE_EXTRA_ARCHS_tune-core2-64} corei7-64" |
Patrick Williams | d8c66bc | 2016-06-20 12:57:21 -0500 | [diff] [blame^] | 32 | QEMU_EXTRAOPTIONS_corei7-64 = " -cpu Nehalem,check=false" |
Patrick Williams | c124f4f | 2015-09-15 14:41:29 -0500 | [diff] [blame] | 33 | |
| 34 | AVAILTUNES += "corei7-64-x32" |
| 35 | TUNE_FEATURES_tune-corei7-64-x32 = "${TUNE_FEATURES_tune-x86-64-x32} corei7" |
| 36 | BASE_LIB_tune-corei7-64-x32 = "libx32" |
| 37 | TUNE_PKGARCH_tune-corei7-64-x32 = "corei7-64-x32" |
| 38 | PACKAGE_EXTRA_ARCHS_tune-corei7-64-x32 = "${PACKAGE_EXTRA_ARCHS_tune-core2-64-x32} corei7-64-x32" |
Patrick Williams | d8c66bc | 2016-06-20 12:57:21 -0500 | [diff] [blame^] | 39 | QEMU_EXTRAOPTIONS_corei7-64-x32 = " -cpu Nehalem,check=false" |