diff options
author | Andre McCurdy <armccurdy@gmail.com> | 2018-04-26 10:57:27 -0700 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2018-05-04 13:28:05 +0100 |
commit | 101c65d59ed9c85ab2cdc8d5ca44a3afb8f00e98 (patch) | |
tree | 3df45901c8ba42f7cbf9712b3e8a24dbb218a34a /meta/conf/machine | |
parent | 5c526c37ff54117eaaa0fecc3ac973312e724f1c (diff) | |
download | poky-101c65d59ed9c85ab2cdc8d5ca44a3afb8f00e98.tar.gz |
tune-corei7.inc: update TUNE_CCARGS -march CPU type corei7 -> nehalem
The gcc "corei7" CPU type was last documented in gcc 4.8.x and has
been undocumented from gcc 4.9.x onwards:
https://gcc.gnu.org/onlinedocs/gcc-4.8.5/gcc/i386-and-x86-64-Options.html
https://gcc.gnu.org/onlinedocs/gcc-4.9.4/gcc/i386-and-x86-64-Options.html
Although it still seems to be accepted by gcc 7.x, it's likely to be
deprecated and removed at some point. To preempt that, switch the
corei7 TUNE_CCARGS -march CPU type to "nehalem", which is the closest
replacement (and matches the CPU type already being passed to qemu).
Since the tune-corei7.inc include file is intended to cover a range
of CPUs from Nehalem onwards, switch the TUNE_CCARGS -mtune option
from "corei7" to "generic", which instructs gcc to produce code
optimized for the most common IA32/AMD64/EM64T processors.
(From OE-Core rev: 8d2f51e9b8d5b27fc61d148a6dd5f6ef5715d6e6)
Signed-off-by: Andre McCurdy <armccurdy@gmail.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/conf/machine')
-rw-r--r-- | meta/conf/machine/include/tune-corei7.inc | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/meta/conf/machine/include/tune-corei7.inc b/meta/conf/machine/include/tune-corei7.inc index 6edfb680e2..9ce731c27a 100644 --- a/meta/conf/machine/include/tune-corei7.inc +++ b/meta/conf/machine/include/tune-corei7.inc | |||
@@ -1,7 +1,7 @@ | |||
1 | # Settings for the GCC(1) cpu-type "corei7": | 1 | # Settings for the GCC(1) cpu-type "nehalem": |
2 | # | 2 | # |
3 | # Intel Core i7 CPU with 64-bit extensions, MMX, SSE, SSE2, SSE3, SSSE3, SSE4.1 | 3 | # Intel Nehalem CPU with 64-bit extensions, MMX, SSE, SSE2, SSE3, SSSE3, SSE4.1, |
4 | # and SSE4.2 instruction set support. | 4 | # SSE4.2 and POPCNT instruction set support. |
5 | # | 5 | # |
6 | # This tune is recommended for Intel Nehalem and Silvermont (e.g. Bay Trail) CPUs | 6 | # This tune is recommended for Intel Nehalem and Silvermont (e.g. Bay Trail) CPUs |
7 | # (and beyond). | 7 | # (and beyond). |
@@ -11,10 +11,9 @@ DEFAULTTUNE ?= "corei7-64" | |||
11 | # Pull in the previous tune in to pull in PACKAGE_EXTRA_ARCHS | 11 | # Pull in the previous tune in to pull in PACKAGE_EXTRA_ARCHS |
12 | require conf/machine/include/tune-core2.inc | 12 | require conf/machine/include/tune-core2.inc |
13 | 13 | ||
14 | |||
15 | # Extra tune features | 14 | # Extra tune features |
16 | TUNEVALID[corei7] = "Enable corei7 specific processor optimizations" | 15 | TUNEVALID[corei7] = "Enable corei7 specific processor optimizations" |
17 | TUNE_CCARGS .= "${@bb.utils.contains('TUNE_FEATURES', 'corei7', ' -march=corei7 -mtune=corei7 -mfpmath=sse -msse4.2', '', d)}" | 16 | TUNE_CCARGS .= "${@bb.utils.contains('TUNE_FEATURES', 'corei7', ' -march=nehalem -mtune=generic -mfpmath=sse -msse4.2', '', d)}" |
18 | 17 | ||
19 | # Extra tune selections | 18 | # Extra tune selections |
20 | AVAILTUNES += "corei7-32" | 19 | AVAILTUNES += "corei7-32" |