Patrick Williams | c124f4f | 2015-09-15 14:41:29 -0500 | [diff] [blame] | 1 | # Settings for the GCC(1) cpu-type "core2": |
| 2 | # |
| 3 | # Intel Core2 CPU with 64-bit extensions, MMX, SSE, SSE2, SSE3 and SSSE3 |
| 4 | # instruction set support. |
| 5 | # |
| 6 | # This tune is recommended for the Intel Core 2 CPU family, including Conroe, |
| 7 | # Merom and beyond, as well as the first Atom CPUs, Diamondville, and beyond. |
| 8 | # |
| 9 | DEFAULTTUNE ?= "core2-32" |
| 10 | |
Patrick Williams | c124f4f | 2015-09-15 14:41:29 -0500 | [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-i686.inc |
Patrick Williams | c124f4f | 2015-09-15 14:41:29 -0500 | [diff] [blame] | 13 | |
| 14 | # Extra tune features |
| 15 | TUNEVALID[core2] = "Enable core2 specific processor optimizations" |
Patrick Williams | d8c66bc | 2016-06-20 12:57:21 -0500 | [diff] [blame] | 16 | TUNE_CCARGS .= "${@bb.utils.contains('TUNE_FEATURES', 'core2', ' -march=core2 -mtune=core2 -msse3 -mfpmath=sse', '', d)}" |
Patrick Williams | c124f4f | 2015-09-15 14:41:29 -0500 | [diff] [blame] | 17 | |
| 18 | # Extra tune selections |
| 19 | AVAILTUNES += "core2-32" |
Patrick Williams | 213cb26 | 2021-08-07 19:21:33 -0500 | [diff] [blame] | 20 | TUNE_FEATURES:tune-core2-32 = "${TUNE_FEATURES:tune-x86} core2" |
| 21 | BASE_LIB:tune-core2-32 = "lib" |
| 22 | TUNE_PKGARCH:tune-core2-32 = "core2-32" |
| 23 | PACKAGE_EXTRA_ARCHS:tune-core2-32 = "${PACKAGE_EXTRA_ARCHS:tune-i686} core2-32" |
Brad Bishop | 1a4b7ee | 2018-12-16 17:11:34 -0800 | [diff] [blame] | 24 | QEMU_EXTRAOPTIONS_core2-32 = " -cpu n270" |
Patrick Williams | c124f4f | 2015-09-15 14:41:29 -0500 | [diff] [blame] | 25 | |
| 26 | AVAILTUNES += "core2-64" |
Patrick Williams | 213cb26 | 2021-08-07 19:21:33 -0500 | [diff] [blame] | 27 | TUNE_FEATURES:tune-core2-64 = "${TUNE_FEATURES:tune-x86-64} core2" |
| 28 | BASE_LIB:tune-core2-64 = "lib64" |
| 29 | TUNE_PKGARCH:tune-core2-64 = "core2-64" |
| 30 | PACKAGE_EXTRA_ARCHS:tune-core2-64 = "${PACKAGE_EXTRA_ARCHS:tune-x86-64} core2-64" |
Brad Bishop | 316dfdd | 2018-06-25 12:45:53 -0400 | [diff] [blame] | 31 | QEMU_EXTRAOPTIONS_core2-64 = " -cpu core2duo" |
Patrick Williams | c124f4f | 2015-09-15 14:41:29 -0500 | [diff] [blame] | 32 | |
| 33 | AVAILTUNES += "core2-64-x32" |
Patrick Williams | 213cb26 | 2021-08-07 19:21:33 -0500 | [diff] [blame] | 34 | TUNE_FEATURES:tune-core2-64-x32 = "${TUNE_FEATURES:tune-x86-64-x32} core2" |
| 35 | BASE_LIB:tune-core2-64-x32 = "libx32" |
| 36 | TUNE_PKGARCH:tune-core2-64-x32 = "core2-64-x32" |
| 37 | PACKAGE_EXTRA_ARCHS:tune-core2-64-x32 = "${PACKAGE_EXTRA_ARCHS:tune-x86-64-x32} core2-64-x32" |
Brad Bishop | 316dfdd | 2018-06-25 12:45:53 -0400 | [diff] [blame] | 38 | QEMU_EXTRAOPTIONS_core2-64-x32 = " -cpu core2duo" |