[dpdk-dev] [PATCH] mk: fix compiling error for atom target

Xiaoyun Li xiaoyun.li at intel.com
Thu Sep 7 10:35:17 CEST 2017


GCC thinks target atom doesn't support SSE4.2 and SSE4 is now part of
minimum requirements for DPDK on x86. So there are compiling errors when
cross-compiling for target atom. And in fact, the atom supports SSE4 now.
This patch fixes this issue.

Fixes: 5ea4d4688dce ("net/ixgbe: remove fallback code for x86 non-SSE4")
Cc: stable at dpdk.org

Signed-off-by: Xiaoyun Li <xiaoyun.li at intel.com>
---
 mk/machine/atm/rte.vars.mk | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/mk/machine/atm/rte.vars.mk b/mk/machine/atm/rte.vars.mk
index cfed110..a6899d9 100644
--- a/mk/machine/atm/rte.vars.mk
+++ b/mk/machine/atm/rte.vars.mk
@@ -56,3 +56,5 @@
 # CPU_ASFLAGS =
 
 MACHINE_CFLAGS = -march=atom
+
+MACHINE_CFLAGS += -msse4.2
-- 
2.7.4



More information about the dev mailing list