From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from emea01-am1-obe.outbound.protection.outlook.com (mail-am1on0082.outbound.protection.outlook.com [157.56.112.82]) by dpdk.org (Postfix) with ESMTP id 23DE637AF for ; Mon, 6 Jul 2015 10:52:12 +0200 (CEST) Received: from AMSPR02CA0031.eurprd02.prod.outlook.com (10.242.225.159) by DB5PR02MB0805.eurprd02.prod.outlook.com (10.161.243.151) with Microsoft SMTP Server (TLS) id 15.1.207.19; Mon, 6 Jul 2015 08:52:11 +0000 Received: from AM1FFO11FD025.protection.gbl (2a01:111:f400:7e00::129) by AMSPR02CA0031.outlook.office365.com (2a01:111:e400:8028::31) with Microsoft SMTP Server (TLS) id 15.1.207.19 via Frontend Transport; Mon, 6 Jul 2015 08:52:11 +0000 Authentication-Results: spf=fail (sender IP is 124.207.145.166) smtp.mailfrom=ezchip.com; ezchip.com; dkim=none (message not signed) header.d=none; Received-SPF: Fail (protection.outlook.com: domain of ezchip.com does not designate 124.207.145.166 as permitted sender) receiver=protection.outlook.com; client-ip=124.207.145.166; helo=bjgfarm-1.internal.tilera.com; Received: from bjgfarm-1.internal.tilera.com (124.207.145.166) by AM1FFO11FD025.mail.protection.outlook.com (10.174.64.214) with Microsoft SMTP Server (TLS) id 15.1.201.10 via Frontend Transport; Mon, 6 Jul 2015 08:52:09 +0000 Received: (from zlu@localhost) by bjgfarm-1.internal.tilera.com (8.14.4/8.14.4/Submit) id t668q3W4024522; Mon, 6 Jul 2015 16:52:03 +0800 From: Zhigang Lu To: Date: Mon, 6 Jul 2015 16:51:26 +0800 Message-ID: <1436172698-21749-2-git-send-email-zlu@ezchip.com> X-Mailer: git-send-email 2.1.2 In-Reply-To: <1436172698-21749-1-git-send-email-zlu@ezchip.com> References: <1436172698-21749-1-git-send-email-zlu@ezchip.com> X-EOPAttributedMessage: 0 X-Microsoft-Exchange-Diagnostics: 1; AM1FFO11FD025; 1:NKFfrnUEOLfGIUFyCipU9zoEM2z3JaiF8GilLRalO25tyFzaCtOfsmJclyc079pL+fFICix6S4tgZd+pKFLMYqAFKeudAdaAiu6wUbGm2FmQMmES4mEOORxyzd3C6sAeL1dFhqHD34H+ofez0ls6NqTGTbJiL+lJ2Apb6PLm79By4C5jshJRPTzMzrnE9TENN0KJTJBq9AHHCxNNWvOrHbVHPuPbuS/++Bz6XMdX0j/W6/EkVB5sKHVd63J486Pq+1bxRUpBrMMZCdoa2OR/Ko8WhAnyVe0PiflVh9sPQgYCChCWKBAuIhAxlkmLvePSKkup6RGdiFejb5J9dZ4gOQ== X-Forefront-Antispam-Report: CIP:124.207.145.166; CTRY:CN; IPV:NLI; EFV:NLI; SFV:NSPM; SFS:(10009020)(6009001)(2980300002)(339900001)(199003)(189002)(104016003)(77156002)(47776003)(33646002)(107886002)(6806004)(5001960100002)(110136002)(87936001)(62966003)(19580405001)(36756003)(2950100001)(450100001)(229853001)(46102003)(50466002)(86362001)(106466001)(575784001)(189998001)(2351001)(5001920100001)(50226001)(19580395003)(105606002)(92566002)(76176999)(50986999)(42186005)(85426001)(48376002)(4001430100001); DIR:OUT; SFP:1101; SCL:1; SRVR:DB5PR02MB0805; H:bjgfarm-1.internal.tilera.com; FPR:; SPF:Fail; MLV:sfv; A:1; MX:1; LANG:en; MIME-Version: 1.0 Content-Type: text/plain X-Microsoft-Exchange-Diagnostics: 1; DB5PR02MB0805; 2:HSapl7qli8sAvkeA9adyMaTCnTH0nehFrYLD0cVEmPnCcO1EhryaLLWRKMM7gctX; 3:XHlzviurG7CTtr06FjffXeXeDpQbX9+5SJZO3Kiki0rybHeRaLSa9mzQEM/CAVLiqMmmCFSqUYXlnbZOzYM7ooEeA+Yvna9LOc1BeHCVjSEnqp6uYj1gTgcfV5Jb3LXxuIke6rHmv+k98koOsCPp9a6q32HXLRiFAKbV4A9vBA+jbOkrrMa03HhDDO3aAEBBeMgjphqesIGyW4Kf82yFRG86dfhIRykH5Hti4cbsdsKddlciwRedM17fOdEe2IBH; 25:VEnRQyoMVmjwgIO1bB2OzeVsaHIvDZdhOSEQMCTRlXn38lgbwDvUExksU/t3yvnlPEhMaT8ChnJ7af5tzVBvH7IVQCynQwwOwqw8r7dUAcwG1cPbS5PXPFvikTij6d5uaIqJ/15OGQceNjA4p6c5A5MysEkyzmtQPKJdzCDM02eIxnLQ9TzJb0bPdMKt1OTTvC0G+A1VBEpxj0wOLMBvrmTq76zd9lyELMZSSO0NcSpWYzlaEIouzO+f2IqYJ+3KZ9xWqetH8mmwH7CplV12tg==; 20:WUEbhIKkQ68CGqd52Nuf00pL3Z3SE+dSA0W61TMGAkr0pAZ1AFPnXHqrRgJkYbbMzJqeL545nHbemoJaexpN/TNHbBnzgv/w4o0yyenZXgUaFM9qyvLxF+Be2Qw3Nt/q1+CMPUXfpItzXKcA2zsVVZYkzVFsospPbBoGO1zYtQo= X-Microsoft-Antispam: UriScan:;BCL:0;PCL:0;RULEID:;SRVR:DB5PR02MB0805; X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:; X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(601004)(5005006)(3002001); SRVR:DB5PR02MB0805; BCL:0; PCL:0; RULEID:; SRVR:DB5PR02MB0805; X-Microsoft-Exchange-Diagnostics: 1; DB5PR02MB0805; 4:K26w4uz6dhyQw9twEnQQmKJootG30OSLyWY3LzI7exsMW/X+iw9qXVfpo0qPM/mMJZHDewB17EZKnlVcLHYdo+UsfcAbGRB0IsKk+HBaceG4Jk9uUA+KozIV7aswWYDQdU7pX2wrTYYgRmXWvKYxqPvsz2ADO58FwZU7IOCfDcS0vnRFQsgNaoVORLevNw10rD2DbGl8S4II7gsPeoYREv4TO251inV4bdRFdoWWm1g1s8XxtGK+LFzZaoBYOFlosDS5J7FE5t5JJAzk4Ao/xjUym4K0GwQqnPfnj+bRgwY= X-Forefront-PRVS: 06290ECA9D X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; DB5PR02MB0805; 23:bKeDflQ5agAhslfnrZ4Qw5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kruzfLAzO6oe8lRu5PGbjRHfDAZieq3SRuqMCzggxkuJPHea5?= =?us-ascii?Q?oBuz+I6Vugdugm2fEmP0jDSUza1iNJTUnhciGHm3OizGOS591u5DekBlJeOr?= =?us-ascii?Q?b3WXl/cV9xGSv/qIlRpZeaB?= X-Microsoft-Exchange-Diagnostics: 1; DB5PR02MB0805; 5:s/NcrR8A3sIVazTp1Ukv62VfL+ObRRgTHn23+jgNU50mWI5kPGrL7BRxdedH1BjX3oGRX9JalUZDz2Vky6D/f3+w5GGSU8ftn4jCetC0N0TLvlCziE0MzdcnlemlSpInl3FhvOolYjwlgNQGwc54bg==; 24:Nra4sy1Q41FhnYAouItasePCujuhamxiAWyAJxQPOdTY1aAYt4rULH4TEh8jk/a946F0wSiHgC0UQdbr9u3sndCHt3dlE3QUp4WPPTmnpV8=; 20:FWg789s8Fr+H6IqzMtEgfi7NkkNLmebZUo219YSGQyU/FcWpQdYTV0qHVWJm+xr4rz4XXRZi2JzUrSH1L9wFxQ== SpamDiagnosticOutput: 1:23 SpamDiagnosticMetadata: NSPM X-OriginatorOrg: ezchip.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 06 Jul 2015 08:52:09.4770 (UTC) X-MS-Exchange-CrossTenant-Id: 0fc16e0a-3cd3-4092-8b2f-0a42cff122c3 X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=0fc16e0a-3cd3-4092-8b2f-0a42cff122c3; Ip=[124.207.145.166]; Helo=[bjgfarm-1.internal.tilera.com] X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: DB5PR02MB0805 Subject: [dpdk-dev] [PATCH v3 01/12] test: limit x86 cpuflags checks to x86 builds X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: patches and discussions about DPDK List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 06 Jul 2015 08:52:12 -0000 The original code mistakenly defaulted to X86 when RTE_ARCH_PPC_64 was left undefined. This did not accomodate other non-PPC/non-X86 architectures. This patch fixes this issue. Change-Id: I5e8cf33c2eb917f7f6583dc95ed0f336066a285e Signed-off-by: Zhigang Lu --- app/test/test_cpuflags.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/app/test/test_cpuflags.c b/app/test/test_cpuflags.c index 5aeba5d..5b92061 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 /* -- 2.1.2