Brad Bishop | 1a4b7ee | 2018-12-16 17:11:34 -0800 | [diff] [blame] | 1 | # Settings for the GCC(1) cpu-type "nehalem": |
Patrick Williams | c124f4f | 2015-09-15 14:41:29 -0500 | [diff] [blame] | 2 | # |
Brad Bishop | 1a4b7ee | 2018-12-16 17:11:34 -0800 | [diff] [blame] | 3 | # Intel Nehalem CPU with 64-bit extensions, MMX, SSE, SSE2, SSE3, SSSE3, SSE4.1, |
| 4 | # SSE4.2 and POPCNT instruction set support. |
Patrick Williams | c124f4f | 2015-09-15 14:41:29 -0500 | [diff] [blame] | 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 | |
Brad Bishop | 1a4b7ee | 2018-12-16 17:11:34 -0800 | [diff] [blame] | 11 | # Include the previous tune to pull in PACKAGE_EXTRA_ARCHS |
Andrew Geissler | d159c7f | 2021-09-02 21:05:58 -0500 | [diff] [blame] | 12 | require conf/machine/include/x86/tune-core2.inc |
Patrick Williams | c124f4f | 2015-09-15 14:41:29 -0500 | [diff] [blame] | 13 | |
| 14 | # Extra tune features |
| 15 | TUNEVALID[corei7] = "Enable corei7 specific processor optimizations" |
Brad Bishop | 1a4b7ee | 2018-12-16 17:11:34 -0800 | [diff] [blame] | 16 | TUNE_CCARGS .= "${@bb.utils.contains('TUNE_FEATURES', 'corei7', ' -march=nehalem -mtune=generic -mfpmath=sse -msse4.2', '', d)}" |
Patrick Williams | c124f4f | 2015-09-15 14:41:29 -0500 | [diff] [blame] | 17 | |
| 18 | # Extra tune selections |
| 19 | AVAILTUNES += "corei7-32" |
Patrick Williams | 213cb26 | 2021-08-07 19:21:33 -0500 | [diff] [blame] | 20 | TUNE_FEATURES:tune-corei7-32 = "${TUNE_FEATURES:tune-x86} corei7" |
| 21 | BASE_LIB:tune-corei7-32 = "lib" |
| 22 | TUNE_PKGARCH:tune-corei7-32 = "corei7-32" |
| 23 | PACKAGE_EXTRA_ARCHS:tune-corei7-32 = "${PACKAGE_EXTRA_ARCHS:tune-core2-32} corei7-32" |
Patrick Williams | d8c66bc | 2016-06-20 12:57:21 -0500 | [diff] [blame] | 24 | QEMU_EXTRAOPTIONS_corei7-32 = " -cpu Nehalem,check=false" |
Patrick Williams | c124f4f | 2015-09-15 14:41:29 -0500 | [diff] [blame] | 25 | |
| 26 | AVAILTUNES += "corei7-64" |
Patrick Williams | 213cb26 | 2021-08-07 19:21:33 -0500 | [diff] [blame] | 27 | TUNE_FEATURES:tune-corei7-64 = "${TUNE_FEATURES:tune-x86-64} corei7" |
| 28 | BASE_LIB:tune-corei7-64 = "lib64" |
| 29 | TUNE_PKGARCH:tune-corei7-64 = "corei7-64" |
| 30 | 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] | 31 | QEMU_EXTRAOPTIONS_corei7-64 = " -cpu Nehalem,check=false" |
Patrick Williams | c124f4f | 2015-09-15 14:41:29 -0500 | [diff] [blame] | 32 | |
| 33 | AVAILTUNES += "corei7-64-x32" |
Patrick Williams | 213cb26 | 2021-08-07 19:21:33 -0500 | [diff] [blame] | 34 | TUNE_FEATURES:tune-corei7-64-x32 = "${TUNE_FEATURES:tune-x86-64-x32} corei7" |
| 35 | BASE_LIB:tune-corei7-64-x32 = "libx32" |
| 36 | TUNE_PKGARCH:tune-corei7-64-x32 = "corei7-64-x32" |
| 37 | 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] | 38 | QEMU_EXTRAOPTIONS_corei7-64-x32 = " -cpu Nehalem,check=false" |