diff options
author | Darren Hart <dvhart@linux.intel.com> | 2014-01-17 22:25:49 +0000 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2014-01-28 00:50:53 +0000 |
commit | 31d3449e1ad6d334619fb2a7d958d18da9a0154e (patch) | |
tree | 7833d4bfc4f476a2bc44a5d58165a5c5642662a2 /meta/conf | |
parent | 3a39071677c56cc69f39962b605be64499861f31 (diff) | |
download | poky-31d3449e1ad6d334619fb2a7d958d18da9a0154e.tar.gz |
tune-core2: Replace -mtune=generic with -mtune=core2
-march specifies which ISA to use. -mtune specifies which cpu-type to
optimize instruction ordering for, but not which ISA to use. There are
times when it may make sense to specify mtune=generic and use a more
specific march, such as core2, but the opposite makes little sense at
all: use cpu-type specific ISA, but order the instructions
generically. While the -mtune is implied by -march, gcc does not verify
it is using -mtune=core2 with:
gcc -Q -march=core2 --help=target
Explicitly specify -mtune=core2 to be sure.
Add a comment header describing the CPUs targeted by this tune file.
(From OE-Core rev: 4cd33193b2db6c281275db2fb5cc169181955217)
Signed-off-by: Darren Hart <dvhart@linux.intel.com>
Cc: Richard Purdie <richard.purdie@linuxfoundation.org>
Cc: Paul Eggleton <paul.eggleton@intel.com>
Cc: Tom Zanussi <tom.zanussi@intel.com>
Cc: Nitin Kamble <nitin.a.kamble@intel.com>
Cc: Mark Hatle <mark.hatle@windriver.com>
Cc: Bruce Ashfield <bruce.ashfield@windriver.com>
Cc: Martin Jansa <martin.jansa@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/conf')
-rw-r--r-- | meta/conf/machine/include/tune-core2.inc | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/meta/conf/machine/include/tune-core2.inc b/meta/conf/machine/include/tune-core2.inc index 85b69240ce..3b251972bb 100644 --- a/meta/conf/machine/include/tune-core2.inc +++ b/meta/conf/machine/include/tune-core2.inc | |||
@@ -1,10 +1,18 @@ | |||
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 | # | ||
1 | DEFAULTTUNE ?= "core2" | 9 | DEFAULTTUNE ?= "core2" |
2 | 10 | ||
3 | require conf/machine/include/tune-i586.inc | 11 | require conf/machine/include/tune-i586.inc |
4 | 12 | ||
5 | # Extra tune features | 13 | # Extra tune features |
6 | TUNEVALID[core2] = "Enable core2 specific processor optimizations" | 14 | TUNEVALID[core2] = "Enable core2 specific processor optimizations" |
7 | TUNE_CCARGS .= "${@bb.utils.contains("TUNE_FEATURES", "core2", " -march=core2 -msse3 -mtune=generic -mfpmath=sse", "", d)}" | 15 | TUNE_CCARGS .= "${@bb.utils.contains("TUNE_FEATURES", "core2", " -march=core2 -mtune=core2 -msse3 -mfpmath=sse", "", d)}" |
8 | 16 | ||
9 | # Extra tune selections | 17 | # Extra tune selections |
10 | AVAILTUNES += "core2" | 18 | AVAILTUNES += "core2" |