summaryrefslogtreecommitdiff
path: root/mk/rte.cpuflags.mk
diff options
context:
space:
mode:
authorVlastimil Kosar <kosar@rehivetech.com>2015-11-03 00:47:22 +0100
committerThomas Monjalon <thomas.monjalon@6wind.com>2015-11-18 22:41:33 +0100
commitb94e5c9406b56cab6b60445022514bef2df34421 (patch)
tree3ecb65386b6a33605c2259b4ebebbc3c20e73c7f /mk/rte.cpuflags.mk
parentd8581077d89308e4b0e5a45f952d1ac0ddaf2374 (diff)
downloaddpdk-b94e5c9406b56cab6b60445022514bef2df34421.zip
dpdk-b94e5c9406b56cab6b60445022514bef2df34421.tar.gz
dpdk-b94e5c9406b56cab6b60445022514bef2df34421.tar.xz
eal/arm: add CPU flags for ARMv7
This implementation is based on IBM POWER version of rte_cpuflags. We use software emulation of HW capability registers, because those are usually not directly accessible from userspace on ARM. Signed-off-by: Vlastimil Kosar <kosar@rehivetech.com> Signed-off-by: Jan Viktorin <viktorin@rehivetech.com> Acked-by: David Marchand <david.marchand@6wind.com>
Diffstat (limited to 'mk/rte.cpuflags.mk')
-rw-r--r--mk/rte.cpuflags.mk6
1 files changed, 6 insertions, 0 deletions
diff --git a/mk/rte.cpuflags.mk b/mk/rte.cpuflags.mk
index f595cd0..bec7bdd 100644
--- a/mk/rte.cpuflags.mk
+++ b/mk/rte.cpuflags.mk
@@ -106,6 +106,12 @@ ifneq ($(filter $(AUTO_CPUFLAGS),__builtin_vsx_xvnmaddadp),)
CPUFLAGS += VSX
endif
+# ARM flags
+ifneq ($(filter $(AUTO_CPUFLAGS),__ARM_NEON_FP),)
+CPUFLAGS += NEON
+endif
+
+
MACHINE_CFLAGS += $(addprefix -DRTE_MACHINE_CPUFLAG_,$(CPUFLAGS))
# To strip whitespace