]> git.droids-corp.org - dpdk.git/commitdiff
mk: require SSE4.2 support on all x86 platforms
authorBruce Richardson <bruce.richardson@intel.com>
Tue, 20 Jun 2017 15:22:56 +0000 (16:22 +0100)
committerThomas Monjalon <thomas@monjalon.net>
Tue, 4 Jul 2017 12:30:05 +0000 (14:30 +0200)
Increase the default baseline from "core2" architecture to "corei7". This
means that all builds will have SSE4.2 support included, and we can remove
special case manipulation of CFLAGS for the same. Naturally, this does mean
that some machines that previously could run DPDK now can't do so, but
hardware with SSE4.2 has been around for almost a decade now, so this
should not be a major problem.

Signed-off-by: Bruce Richardson <bruce.richardson@intel.com>
Acked-by: Konstantin Ananyev <konstantin.ananyev@intel.com>
mk/machine/default/rte.vars.mk
mk/machine/native/rte.vars.mk
mk/toolchain/icc/rte.toolchain-compat.mk

index a6fb84244b3db5defcd25880371e0d47e37f5886..71a25bcae37928c252d2738fa60961fbd53f14f0 100644 (file)
@@ -55,4 +55,4 @@
 # CPU_LDFLAGS =
 # CPU_ASFLAGS =
 
-MACHINE_CFLAGS += -march=core2
+MACHINE_CFLAGS += -march=corei7
index 7f55b54a89f43d0784e646377a4d786ca68cfb90..f7d98d0dc9ed775c40111beef7dbf1b943ed4375 100644 (file)
@@ -63,8 +63,5 @@ MACHINE_CFLAGS = -march=native
 # so, set the compilation target to be a corei7, minimum target with SSE4.2.
 SSE42_SUPPORT=$(shell $(CC) -march=native -dM -E - </dev/null | grep SSE4_2)
 ifeq ($(SSE42_SUPPORT),)
-  CPU_SSE42_SUPPORT = $(shell grep SSE4\.2 /var/run/dmesg.boot 2>/dev/null)
-  ifneq ($(CPU_SSE42_SUPPORT),)
     MACHINE_CFLAGS = -march=corei7
-  endif
 endif
index 88f1ac92f41384598f8f31038e55eb8e6102261b..3c25d184c55b56ef95b72c5513ba9925f3b44d65 100644 (file)
@@ -41,7 +41,7 @@
 ICC_MAJOR_VERSION = $(shell icc -dumpversion | cut -f1 -d.)
 
 ifeq ($(shell test $(ICC_MAJOR_VERSION) -lt 12 && echo 1), 1)
-       MACHINE_CFLAGS = -xSSE3
+       MACHINE_CFLAGS = -xSSE4.2
 $(warning You are not using ICC 12.x or higher. This is neither supported, nor tested.)
 
 else