From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from emea01-db3-obe.outbound.protection.outlook.com (mail-db3on0086.outbound.protection.outlook.com [157.55.234.86]) by dpdk.org (Postfix) with ESMTP id 915CA683D for ; Thu, 9 Jul 2015 10:25:48 +0200 (CEST) Received: from AM3PR02CA0047.eurprd02.prod.outlook.com (10.242.240.47) by AM2PR02MB0801.eurprd02.prod.outlook.com (10.163.146.21) with Microsoft SMTP Server (TLS) id 15.1.207.19; Thu, 9 Jul 2015 08:25:47 +0000 Received: from DB3FFO11FD007.protection.gbl (2a01:111:f400:7e04::139) by AM3PR02CA0047.outlook.office365.com (2a01:111:e400:8800::47) with Microsoft SMTP Server (TLS) id 15.1.213.14 via Frontend Transport; Thu, 9 Jul 2015 08:25:47 +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 DB3FFO11FD007.mail.protection.outlook.com (10.47.216.96) with Microsoft SMTP Server (TLS) id 15.1.213.8 via Frontend Transport; Thu, 9 Jul 2015 08:25:46 +0000 Received: (from zlu@localhost) by bjgfarm-1.internal.tilera.com (8.14.4/8.14.4/Submit) id t698Pfff003916; Thu, 9 Jul 2015 16:25:41 +0800 From: Zhigang Lu To: Date: Thu, 9 Jul 2015 16:25:10 +0800 Message-ID: <1436430321-3864-2-git-send-email-zlu@ezchip.com> X-Mailer: git-send-email 2.1.2 In-Reply-To: <1436430321-3864-1-git-send-email-zlu@ezchip.com> References: <1436430321-3864-1-git-send-email-zlu@ezchip.com> X-EOPAttributedMessage: 0 X-Microsoft-Exchange-Diagnostics: 1; DB3FFO11FD007; 1:BSy+Fdjhg4VunENPJBf2dBbqm2NEHSe2aYnEA3y+b8+Jy8i5bjsSRACCcmR4THJ9iLzfr5VFBd0ffVFACpnVGYO/jWfEPSF+ikl1f1EDcJA/UEKZfg34lxmmSCxNn4WQLfrpy9Jkh3T1AGD3c9vMIa4AQzmRGINHbik0DgantUW8ieFojXg1Fz0vgZ4849eQZ0dQVX/MxqkKGmtYwjjH6o6KIbTeRLCzGQCrNtPuJlz1Cw+z82Nk6aYyjy8kt7oXbf8PhssTMoCpXRTeCASXXcKSksgQwxxu9XJ/anYjgMvx/KGmCJxeyykyQHYsf8YJUFyP4enPtYTL1BuepF2ZrUsbNV7s8WF/tExquJgIhwBm2lSCLv3Tt4qzX5Wv3ZG6O7gXhPL7xSjK+fdux/0ReciJbv9Wfs+gyMhnkMfsVAXdaM4F7Rds6i9cmsf0M+nC X-Forefront-Antispam-Report: CIP:124.207.145.166; CTRY:CN; IPV:NLI; EFV:NLI; SFV:NSPM; SFS:(10009020)(6009001)(2980300002)(339900001)(199003)(189002)(229853001)(2351001)(62966003)(450100001)(77156002)(50986999)(5003940100001)(86362001)(76176999)(87936001)(85426001)(104016003)(2950100001)(33646002)(48376002)(42186005)(50226001)(106466001)(50466002)(105606002)(92566002)(46102003)(5001960100002)(5001920100001)(19580405001)(19580395003)(6806004)(107886002)(189998001)(110136002)(36756003)(47776003)(4001430100001); DIR:OUT; SFP:1101; SCL:1; SRVR:AM2PR02MB0801; 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; AM2PR02MB0801; 2:SOzuRoT8nxUENk/P05eqEVN1fy6iFDpUh/eLZZmP+NMFsGwG1JsZeddsehaYPbum; 3:g785159/rlbuO5r5pg8VGs+wwonCtki/KKuue6aTsh00SPKRnFRM0OuEoIznz+v5P1BdY9I4yr8V5u7VdtMi5uN/lIn8689zm855U0ze8Xm68FQkqqgdGaKxB1jDlQyTwn0N4M/eRRzePYXO8bGWHGMraB83KeTD2N6y/Td6vipv3hIllBCW709SK+YPCrvBS4A//7ziUoMY7c4ncoeGQ50sN253/thKbYpAACatww/gEaYed4p5S/nf/TpvBoia; 25:UrZKAHfzL2sCm04NNige3ZavmY1OrA+n40I9uDXTbNQGegxe44F9SrEWzqzLQAnlug1qhH5N5aLhJV7vvVMF7YXi1Va7d9Kr/wkI4ZMmy2tc8b/Apfbbs6hhRwPBzyi7uLJ4S9L+ChS8Hu2h0BhAZsEn9NRQlhzrTrxYn+Mc2/ndrXAKASnPx+sEZE86GL0NN6iNuhWUh1qLxmARHau5gRqKLdA1Ttyu5BzR/sZIMVmPL8oklUas9jHb2EBfHnPO; 20:gjKd43PJZvF5MVZ6d+kplyHd3OqqK216e0pCKmBJ2gQ/fExDNXA0n3aSrAsvDOWwEm6Qxjlj9bRdiMWmpjSWDnozWXJVfFhn36B0IHIrw3nvJYFlN4Op9Zjlhc8hi8bBxhELZdYUQuWI2SDgiiIpS/wncolxhAdVeAvPqac3UhM= X-Microsoft-Antispam: UriScan:;BCL:0;PCL:0;RULEID:;SRVR:AM2PR02MB0801; 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:AM2PR02MB0801; BCL:0; PCL:0; RULEID:; SRVR:AM2PR02MB0801; X-Microsoft-Exchange-Diagnostics: 1; AM2PR02MB0801; 4:XrErNAuGrvT5UOj9uUbZnx0RPNRwG72vHhfaGlUWqkdYk0MBywMJ7XJEHngRWB04lLzBH/fbvHIA8/ZKqXjUgZSZm3oq7aDdV8GgKNpagIkZ7qbpTSFFt8FvymSygU71430k437Q1ZJ4M80Mpez1gkesIVHUlvaD3W/AidQp7qrY8GDxinI3jO4sze4Dt/r4pgaUW01/BWwvQuqoiOllKNq7LCy8BPPTD3Tl7aWylbWVQ9tqotUzlV1yAy1so95GUQW51qglWN6KUBXbh6xqMOBmsjMnyfECUdMdNa39+Ug= X-Forefront-PRVS: 0632519F33 X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; AM2PR02MB0801; 23:hBY7fqkCAYSZFXq0eEK+CyWxbPEMGSSQsdP2Is/U5?= =?us-ascii?Q?8SrGcPypSBBz/8hk6bn6b73rALMqzd/R0/Xy57JHwDORUb7DshyHYkc+qbJx?= =?us-ascii?Q?WCXfbF5KGroQo5anvHdn65Zp7jQFQHEy3x8EHIl+KTFcdAxr/0wtvFRUTzqd?= =?us-ascii?Q?/GXsUcuccaPrmRIDXIHW0YJRR7zwRg+YicN1Frh6bbnPQyx9FrjZX4LQGVwt?= =?us-ascii?Q?94ccEq+/yGZCBOWGn2eKifPZBQc9m5NzqwnPMQK25l9hLMwWSKWeyxMubVUc?= =?us-ascii?Q?7hSYv203Up0uqoiBHNs5mkMmxyt2uxUKYR+2nBpb1KVqdXmwaMOR7OaBr805?= =?us-ascii?Q?gnshsBK9k+eK+fNz+lXEwxF5Q+gknL0tdgKAbArIip3W3nla57JAi00NMyOq?= =?us-ascii?Q?cN0ozFJI/SyZ6kVe4u7hWaImeyOjyURzZa/fPgkvUXwn8+8n8GIw37b4TelI?= =?us-ascii?Q?cAPFElIhp62BXek3EoB3Y3MLuUB3T5QmQcmbgPnRlfvOd5riPUKO7plEeVD9?= =?us-ascii?Q?wBetaoZnrtlnIR511iyl6G9FDe7gJZ++6soqOZ9trXgCk6F1LdbH1WhPzPeR?= =?us-ascii?Q?uYT1KEtfZQywNf3lRydC3uStkna9c5rNySTYCnoU/HAB5YDzbW2VXIr9RRiQ?= =?us-ascii?Q?y+PrfjAdSxXP5cnkQbxX3MH0/+LChfDVZ6NwsGvlV0Rmmjji7tCNaLQ0F7tb?= =?us-ascii?Q?El/KYyfovcgwiNBDWD+jVMp/td1Vvzq5DcGtfFba7jl8XW8Dz8TKXpyxvLBw?= =?us-ascii?Q?pj5yk+h8P8FRYm2T7qlVlI30NfYDxgFkRKiX2a0wCDbObuX9CG49FWt8YvO1?= =?us-ascii?Q?R/+sRwMU4zgM65ZfzDupUoVG0mWb4EtZvqJUlpLLU3800Dj95gCerPKcUYzv?= =?us-ascii?Q?O46WKeBMb035Jqvy+D7RA/IfXCSaMaRNpkVgoHFwTjyR2qFAmj48K/D1M/uj?= =?us-ascii?Q?X0w1cXevE19JvcsPyZQcsr4lS4skOjS2FbPkbgTzOGxoO92E7zB68DslIl4g?= =?us-ascii?Q?s+MM/4YqSKm/CS79RbI7hZt?= X-Microsoft-Exchange-Diagnostics: 1; AM2PR02MB0801; 5:K/i9zgzuUvdxkGi2RWuTtuXnXyhc8KJ89xBihdrAjAwyXrP1uW0YKcUuzsSm97UIt36nNdm2UvSuaYw4/KZKxyQtTXRHhqgrW2xvc68GVbCO2jog5GBbnfbxFlXtChqn1H01UzKsxb1klYuCU+I7zg==; 24:9S7nqe3DajQsV3ZNd6mbQDrtBd45Sq/f/11oIcf+gjs0yEkjRDEf2OtZmfkxHj5HFet7CUh4V6bcCj+iQ7vyPTPPoOvrOHa0nKPtQdTKp7Q=; 20:U5VMSR+ZyDFE8G8y8kee2gnv4eI9vYB7FeLfuOO0fAZbtLQqfL5Wa0VKSv95shjl2MaByIS4Uye4CJUqaxkc6g== SpamDiagnosticOutput: 1:23 SpamDiagnosticMetadata: NSPM X-OriginatorOrg: ezchip.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 09 Jul 2015 08:25:46.0378 (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: AM2PR02MB0801 Cc: Cyril Chemparathy Subject: [dpdk-dev] [PATCH v5 01/11] 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: Thu, 09 Jul 2015 08:25:48 -0000 From: Cyril Chemparathy 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. Signed-off-by: Cyril Chemparathy Signed-off-by: Zhigang Lu Acked-by: Bruce Richardson --- 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