blob: 97b7c1b1889b5b9ef9291ba34f568890b52b7a41 [file] [log] [blame]
Patrick Williamsc124f4f2015-09-15 14:41:29 -05001# 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#
9DEFAULTTUNE ?= "core2-32"
10
Patrick Williamsc124f4f2015-09-15 14:41:29 -050011# Include the previous tune to pull in PACKAGE_EXTRA_ARCHS
Andrew Geisslerd159c7f2021-09-02 21:05:58 -050012require conf/machine/include/x86/tune-i686.inc
Patrick Williamsc124f4f2015-09-15 14:41:29 -050013
14# Extra tune features
15TUNEVALID[core2] = "Enable core2 specific processor optimizations"
Patrick Williamsd8c66bc2016-06-20 12:57:21 -050016TUNE_CCARGS .= "${@bb.utils.contains('TUNE_FEATURES', 'core2', ' -march=core2 -mtune=core2 -msse3 -mfpmath=sse', '', d)}"
Patrick Williamsc124f4f2015-09-15 14:41:29 -050017
18# Extra tune selections
19AVAILTUNES += "core2-32"
Patrick Williams213cb262021-08-07 19:21:33 -050020TUNE_FEATURES:tune-core2-32 = "${TUNE_FEATURES:tune-x86} core2"
21BASE_LIB:tune-core2-32 = "lib"
22TUNE_PKGARCH:tune-core2-32 = "core2-32"
23PACKAGE_EXTRA_ARCHS:tune-core2-32 = "${PACKAGE_EXTRA_ARCHS:tune-i686} core2-32"
Brad Bishop1a4b7ee2018-12-16 17:11:34 -080024QEMU_EXTRAOPTIONS_core2-32 = " -cpu n270"
Patrick Williamsc124f4f2015-09-15 14:41:29 -050025
26AVAILTUNES += "core2-64"
Patrick Williams213cb262021-08-07 19:21:33 -050027TUNE_FEATURES:tune-core2-64 = "${TUNE_FEATURES:tune-x86-64} core2"
28BASE_LIB:tune-core2-64 = "lib64"
29TUNE_PKGARCH:tune-core2-64 = "core2-64"
30PACKAGE_EXTRA_ARCHS:tune-core2-64 = "${PACKAGE_EXTRA_ARCHS:tune-x86-64} core2-64"
Brad Bishop316dfdd2018-06-25 12:45:53 -040031QEMU_EXTRAOPTIONS_core2-64 = " -cpu core2duo"
Patrick Williamsc124f4f2015-09-15 14:41:29 -050032
33AVAILTUNES += "core2-64-x32"
Patrick Williams213cb262021-08-07 19:21:33 -050034TUNE_FEATURES:tune-core2-64-x32 = "${TUNE_FEATURES:tune-x86-64-x32} core2"
35BASE_LIB:tune-core2-64-x32 = "libx32"
36TUNE_PKGARCH:tune-core2-64-x32 = "core2-64-x32"
37PACKAGE_EXTRA_ARCHS:tune-core2-64-x32 = "${PACKAGE_EXTRA_ARCHS:tune-x86-64-x32} core2-64-x32"
Brad Bishop316dfdd2018-06-25 12:45:53 -040038QEMU_EXTRAOPTIONS_core2-64-x32 = " -cpu core2duo"