arch: Add support for Westmere targets
The westmere line of x86_64 targets lies between nehalem (corei7) and
sandybridge (corei7-avx). Allowing use of -march=westmere enables use of
AES instruction set on these targets.
Signed-off-by: Esben Haabendal <esben@geanix.com>
Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
(cherry picked from commit 97651ce275
)
Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
This commit is contained in:
parent
e335f33ceb
commit
b2a4e994b5
@ -101,6 +101,15 @@ config BR2_x86_corei7
|
|||||||
select BR2_X86_CPU_HAS_SSSE3
|
select BR2_X86_CPU_HAS_SSSE3
|
||||||
select BR2_X86_CPU_HAS_SSE4
|
select BR2_X86_CPU_HAS_SSE4
|
||||||
select BR2_X86_CPU_HAS_SSE42
|
select BR2_X86_CPU_HAS_SSE42
|
||||||
|
config BR2_x86_westmere
|
||||||
|
bool "westmere"
|
||||||
|
select BR2_X86_CPU_HAS_MMX
|
||||||
|
select BR2_X86_CPU_HAS_SSE
|
||||||
|
select BR2_X86_CPU_HAS_SSE2
|
||||||
|
select BR2_X86_CPU_HAS_SSE3
|
||||||
|
select BR2_X86_CPU_HAS_SSSE3
|
||||||
|
select BR2_X86_CPU_HAS_SSE4
|
||||||
|
select BR2_X86_CPU_HAS_SSE42
|
||||||
config BR2_x86_corei7_avx
|
config BR2_x86_corei7_avx
|
||||||
bool "corei7-avx"
|
bool "corei7-avx"
|
||||||
select BR2_X86_CPU_HAS_MMX
|
select BR2_X86_CPU_HAS_MMX
|
||||||
@ -235,6 +244,7 @@ config BR2_ARCH
|
|||||||
default "i686" if BR2_x86_nocona && BR2_i386
|
default "i686" if BR2_x86_nocona && BR2_i386
|
||||||
default "i686" if BR2_x86_core2 && BR2_i386
|
default "i686" if BR2_x86_core2 && BR2_i386
|
||||||
default "i686" if BR2_x86_corei7 && BR2_i386
|
default "i686" if BR2_x86_corei7 && BR2_i386
|
||||||
|
default "i686" if BR2_x86_westmere && BR2_i386
|
||||||
default "i686" if BR2_x86_corei7_avx && BR2_i386
|
default "i686" if BR2_x86_corei7_avx && BR2_i386
|
||||||
default "i686" if BR2_x86_core_avx2 && BR2_i386
|
default "i686" if BR2_x86_core_avx2 && BR2_i386
|
||||||
default "i686" if BR2_x86_atom && BR2_i386
|
default "i686" if BR2_x86_atom && BR2_i386
|
||||||
@ -271,6 +281,7 @@ config BR2_GCC_TARGET_ARCH
|
|||||||
default "corei7-avx" if BR2_x86_corei7_avx
|
default "corei7-avx" if BR2_x86_corei7_avx
|
||||||
default "core-avx2" if BR2_x86_core_avx2
|
default "core-avx2" if BR2_x86_core_avx2
|
||||||
default "atom" if BR2_x86_atom
|
default "atom" if BR2_x86_atom
|
||||||
|
default "westmere" if BR2_x86_westmere
|
||||||
default "silvermont" if BR2_x86_silvermont
|
default "silvermont" if BR2_x86_silvermont
|
||||||
default "k8" if BR2_x86_opteron
|
default "k8" if BR2_x86_opteron
|
||||||
default "k8-sse3" if BR2_x86_opteron_sse3
|
default "k8-sse3" if BR2_x86_opteron_sse3
|
||||||
|
Loading…
Reference in New Issue
Block a user