blob: bf1ac7a93b33f86ae7584af320fc57b13eb3937c [file] [log] [blame]
Brad Bishop1a4b7ee2018-12-16 17:11:34 -08001# Settings for the GCC(1) cpu-type "nehalem":
Patrick Williamsc124f4f2015-09-15 14:41:29 -05002#
Brad Bishop1a4b7ee2018-12-16 17:11:34 -08003# Intel Nehalem CPU with 64-bit extensions, MMX, SSE, SSE2, SSE3, SSSE3, SSE4.1,
4# SSE4.2 and POPCNT instruction set support.
Patrick Williamsc124f4f2015-09-15 14:41:29 -05005#
6# This tune is recommended for Intel Nehalem and Silvermont (e.g. Bay Trail) CPUs
7# (and beyond).
8#
9DEFAULTTUNE ?= "corei7-64"
10
Brad Bishop1a4b7ee2018-12-16 17:11:34 -080011# Include the previous tune to pull in PACKAGE_EXTRA_ARCHS
Patrick Williamsc124f4f2015-09-15 14:41:29 -050012require conf/machine/include/tune-core2.inc
13
14# Extra tune features
15TUNEVALID[corei7] = "Enable corei7 specific processor optimizations"
Brad Bishop1a4b7ee2018-12-16 17:11:34 -080016TUNE_CCARGS .= "${@bb.utils.contains('TUNE_FEATURES', 'corei7', ' -march=nehalem -mtune=generic -mfpmath=sse -msse4.2', '', d)}"
Patrick Williamsc124f4f2015-09-15 14:41:29 -050017
18# Extra tune selections
19AVAILTUNES += "corei7-32"
Patrick Williams213cb262021-08-07 19:21:33 -050020TUNE_FEATURES:tune-corei7-32 = "${TUNE_FEATURES:tune-x86} corei7"
21BASE_LIB:tune-corei7-32 = "lib"
22TUNE_PKGARCH:tune-corei7-32 = "corei7-32"
23PACKAGE_EXTRA_ARCHS:tune-corei7-32 = "${PACKAGE_EXTRA_ARCHS:tune-core2-32} corei7-32"
Patrick Williamsd8c66bc2016-06-20 12:57:21 -050024QEMU_EXTRAOPTIONS_corei7-32 = " -cpu Nehalem,check=false"
Patrick Williamsc124f4f2015-09-15 14:41:29 -050025
26AVAILTUNES += "corei7-64"
Patrick Williams213cb262021-08-07 19:21:33 -050027TUNE_FEATURES:tune-corei7-64 = "${TUNE_FEATURES:tune-x86-64} corei7"
28BASE_LIB:tune-corei7-64 = "lib64"
29TUNE_PKGARCH:tune-corei7-64 = "corei7-64"
30PACKAGE_EXTRA_ARCHS:tune-corei7-64 = "${PACKAGE_EXTRA_ARCHS:tune-core2-64} corei7-64"
Patrick Williamsd8c66bc2016-06-20 12:57:21 -050031QEMU_EXTRAOPTIONS_corei7-64 = " -cpu Nehalem,check=false"
Patrick Williamsc124f4f2015-09-15 14:41:29 -050032
33AVAILTUNES += "corei7-64-x32"
Patrick Williams213cb262021-08-07 19:21:33 -050034TUNE_FEATURES:tune-corei7-64-x32 = "${TUNE_FEATURES:tune-x86-64-x32} corei7"
35BASE_LIB:tune-corei7-64-x32 = "libx32"
36TUNE_PKGARCH:tune-corei7-64-x32 = "corei7-64-x32"
37PACKAGE_EXTRA_ARCHS:tune-corei7-64-x32 = "${PACKAGE_EXTRA_ARCHS:tune-core2-64-x32} corei7-64-x32"
Patrick Williamsd8c66bc2016-06-20 12:57:21 -050038QEMU_EXTRAOPTIONS_corei7-64-x32 = " -cpu Nehalem,check=false"