summaryrefslogtreecommitdiff
path: root/app
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 /app
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 'app')
-rw-r--r--app/test/test_cpuflags.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/app/test/test_cpuflags.c b/app/test/test_cpuflags.c
index 5b92061..557458f 100644
--- a/app/test/test_cpuflags.c
+++ b/app/test/test_cpuflags.c
@@ -115,6 +115,11 @@ test_cpuflags(void)
CHECK_FOR_FLAG(RTE_CPUFLAG_ICACHE_SNOOP);
#endif
+#if defined(RTE_ARCH_ARM)
+ printf("Check for NEON:\t\t");
+ CHECK_FOR_FLAG(RTE_CPUFLAG_NEON);
+#endif
+
#if defined(RTE_ARCH_X86_64) || defined(RTE_ARCH_I686)
printf("Check for SSE:\t\t");
CHECK_FOR_FLAG(RTE_CPUFLAG_SSE);