From: Cyril Chemparathy Date: Thu, 9 Jul 2015 08:25:10 +0000 (+0800) Subject: app/test: restrict x86 cpu flags checks to x86 builds X-Git-Tag: spdx-start~8767 X-Git-Url: http://git.droids-corp.org/?p=dpdk.git;a=commitdiff_plain;h=f7f500d245ff1a31902491018f8b8375533c26e3 app/test: restrict x86 cpu flags checks to x86 builds The original code mistakenly defaulted to X86 when RTE_ARCH_PPC_64 was left undefined. This did not accommodate other non-PPC/non-X86 architectures. This patch fixes this issue. Signed-off-by: Cyril Chemparathy Signed-off-by: Zhigang Lu Acked-by: Bruce Richardson --- diff --git a/app/test/test_cpuflags.c b/app/test/test_cpuflags.c index 5aeba5d72b..5b92061f5f 100644 --- a/app/test/test_cpuflags.c +++ b/app/test/test_cpuflags.c @@ -113,7 +113,9 @@ test_cpuflags(void) printf("Check for ICACHE_SNOOP:\t\t"); CHECK_FOR_FLAG(RTE_CPUFLAG_ICACHE_SNOOP); -#else +#endif + +#if defined(RTE_ARCH_X86_64) || defined(RTE_ARCH_I686) printf("Check for SSE:\t\t"); CHECK_FOR_FLAG(RTE_CPUFLAG_SSE); @@ -149,8 +151,6 @@ test_cpuflags(void) printf("Check for INVTSC:\t"); CHECK_FOR_FLAG(RTE_CPUFLAG_INVTSC); - - #endif /*