blob: 6edfb680e22717db671fce40aeed38cc2510cb20 [file] [log] [blame]
Patrick Williamsc124f4f2015-09-15 14:41:29 -05001# 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#
9DEFAULTTUNE ?= "corei7-64"
10
11# Pull in the previous tune in to pull in PACKAGE_EXTRA_ARCHS
12require conf/machine/include/tune-core2.inc
13
Patrick Williamsd8c66bc2016-06-20 12:57:21 -050014
Patrick Williamsc124f4f2015-09-15 14:41:29 -050015# Extra tune features
16TUNEVALID[corei7] = "Enable corei7 specific processor optimizations"
Patrick Williamsd8c66bc2016-06-20 12:57:21 -050017TUNE_CCARGS .= "${@bb.utils.contains('TUNE_FEATURES', 'corei7', ' -march=corei7 -mtune=corei7 -mfpmath=sse -msse4.2', '', d)}"
Patrick Williamsc124f4f2015-09-15 14:41:29 -050018
19# Extra tune selections
20AVAILTUNES += "corei7-32"
21TUNE_FEATURES_tune-corei7-32 = "${TUNE_FEATURES_tune-x86} corei7"
22BASE_LIB_tune-corei7-32 = "lib"
23TUNE_PKGARCH_tune-corei7-32 = "corei7-32"
Patrick Williamsd8c66bc2016-06-20 12:57:21 -050024PACKAGE_EXTRA_ARCHS_tune-corei7-32 = "${PACKAGE_EXTRA_ARCHS_tune-core2-32} corei7-32"
25QEMU_EXTRAOPTIONS_corei7-32 = " -cpu Nehalem,check=false"
Patrick Williamsc124f4f2015-09-15 14:41:29 -050026
27AVAILTUNES += "corei7-64"
28TUNE_FEATURES_tune-corei7-64 = "${TUNE_FEATURES_tune-x86-64} corei7"
29BASE_LIB_tune-corei7-64 = "lib64"
30TUNE_PKGARCH_tune-corei7-64 = "corei7-64"
31PACKAGE_EXTRA_ARCHS_tune-corei7-64 = "${PACKAGE_EXTRA_ARCHS_tune-core2-64} corei7-64"
Patrick Williamsd8c66bc2016-06-20 12:57:21 -050032QEMU_EXTRAOPTIONS_corei7-64 = " -cpu Nehalem,check=false"
Patrick Williamsc124f4f2015-09-15 14:41:29 -050033
34AVAILTUNES += "corei7-64-x32"
35TUNE_FEATURES_tune-corei7-64-x32 = "${TUNE_FEATURES_tune-x86-64-x32} corei7"
36BASE_LIB_tune-corei7-64-x32 = "libx32"
37TUNE_PKGARCH_tune-corei7-64-x32 = "corei7-64-x32"
38PACKAGE_EXTRA_ARCHS_tune-corei7-64-x32 = "${PACKAGE_EXTRA_ARCHS_tune-core2-64-x32} corei7-64-x32"
Patrick Williamsd8c66bc2016-06-20 12:57:21 -050039QEMU_EXTRAOPTIONS_corei7-64-x32 = " -cpu Nehalem,check=false"