From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from emea01-db3-obe.outbound.protection.outlook.com (mail-db3on0068.outbound.protection.outlook.com [157.55.234.68]) by dpdk.org (Postfix) with ESMTP id 86ECE5A6F for ; Thu, 9 Jul 2015 06:59:49 +0200 (CEST) Received: from DB3PR02CA0038.eurprd02.prod.outlook.com (10.242.134.48) by HE1PR02MB0794.eurprd02.prod.outlook.com (10.161.118.146) with Microsoft SMTP Server (TLS) id 15.1.207.19; Thu, 9 Jul 2015 04:59:47 +0000 Received: from DB3FFO11FD022.protection.gbl (2a01:111:f400:7e04::181) by DB3PR02CA0038.outlook.office365.com (2a01:111:e400:9814::48) with Microsoft SMTP Server (TLS) id 15.1.207.19 via Frontend Transport; Thu, 9 Jul 2015 04:59:45 +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 DB3FFO11FD022.mail.protection.outlook.com (10.47.217.53) with Microsoft SMTP Server (TLS) id 15.1.213.8 via Frontend Transport; Thu, 9 Jul 2015 04:59:44 +0000 Received: (from zlu@localhost) by bjgfarm-1.internal.tilera.com (8.14.4/8.14.4/Submit) id t694xbiF018556; Thu, 9 Jul 2015 12:59:37 +0800 From: Zhigang Lu To: Date: Thu, 9 Jul 2015 12:58:47 +0800 Message-ID: <1436417938-18496-2-git-send-email-zlu@ezchip.com> X-Mailer: git-send-email 2.1.2 In-Reply-To: <1436417938-18496-1-git-send-email-zlu@ezchip.com> References: <1436417938-18496-1-git-send-email-zlu@ezchip.com> X-EOPAttributedMessage: 0 X-Microsoft-Exchange-Diagnostics: 1; DB3FFO11FD022; 1:H3a+mG+pnw6dsHV3hE/EgkOVIUnrTeV+cUbc76yLEUGSdjgJzBykZZoppiKb2aWnl6+IA7epv9kq1jdVHMhnryRABVpD584AqILymSFDMMb+iaTsa2uuuRZwi9MfvHYu7cRjjZTEmNT7cXmFW+GON8yL0SEYgFt0PvFdrXCTC5T81lJL5uErqAmKDDKKv2PVXp8/ShkDv7KYoUb05Uliu69PKML/7IZ3wwV3lAqlB2wbcRUW3o9292zkBySGuYwMC9pPFemuy8QqgKmx/+2BzZVZ9oeRS5sVMe+A+ArcnPIuF95+GNz31cspm052F7DYHFipxrag2Yn/p3IUcqCCDLpnJjjBnaLDpa4Oijv0zgCQWs6+QZMZprWBDkHuzg4BChM1RWDECMLOSNSAmF6V8e5R2+M+sdM9R5gUWLNrvwcaEgWYGZZoejJhfqypuSiQ X-Forefront-Antispam-Report: CIP:124.207.145.166; CTRY:CN; IPV:NLI; EFV:NLI; SFV:NSPM; SFS:(10009020)(6009001)(2980300002)(339900001)(199003)(189002)(87936001)(77156002)(42186005)(50986999)(76176999)(36756003)(86362001)(50226001)(189998001)(107886002)(2351001)(62966003)(5003940100001)(110136002)(19580395003)(450100001)(48376002)(92566002)(50466002)(229853001)(106466001)(2950100001)(5001960100002)(47776003)(46102003)(33646002)(6806004)(104016003)(105606002)(85426001)(19580405001)(4001430100001); DIR:OUT; SFP:1101; SCL:1; SRVR:HE1PR02MB0794; 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; HE1PR02MB0794; 2:JWCT9lCNKDZ7m2iAoetBGAKpD1fFZ9q1MXqbjdVQuS1cj0u4N2FZag7ji3+W8IN8; 3:g4XrwmMfuogfgYVnhCY+y+WRprlCTk3mMnEorHAYVg57Bt2CeDU4kQC1Oi7XYiFIXfSVxHtNjXNiJ8vfOFPJrpvZfll76tr9DFCZ/3SFSGOSzCm8/LDQQovtbwgk8DgYpeUkcWWwRswunjsecAjpWXOCYTgIkelWEGHHaEzywDGFKR1tDJysxzCFhaFpAUEJncG3BY1qne6X7ZDW5nFPfuBT40uQTMH56QkiDAKyDTkcUNF5bsOpM8u916KBz133; 25:KNdUmhiWK4bk4R1dBdPi6mNb17tiBRYm6gxetYtI/FiLVsD7EO0aKpguR3tTw4nv44l7Yf8UIqALqyw8s4jMbkXn8+JxbRfYk3jAyP9mBXsfOzAtmPyF1co2AdySPgz4lBJjEc9RFIEpBbGQioERBYdDT53kdHzRhAxj9iYKh4bQhAUtH0uFolUHwYTLPWPP+EEzHWOY4BUk4upsFpnClOYnfYqsq7OGeHQkssNjU/eQmnRt36wFUhL1nR71mcKq; 20:oZXFPPge0tXEp7ofCdWDBI54Y/OUH17eE0IcfAthRh2+6wXN8H1u2Iv9uef/It9RwFLk5FBa7XfVnaZTccxJWcy2Kig/EEOl6H9PFxctGtq0E63sPv+QnQxIBF6CiPofYoBhn+F9ch3LAPjhSz22vok0EGZjh7c7QrIOJGLWApc= X-Microsoft-Antispam: UriScan:;BCL:0;PCL:0;RULEID:;SRVR:HE1PR02MB0794; 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:HE1PR02MB0794; BCL:0; PCL:0; RULEID:; SRVR:HE1PR02MB0794; X-Microsoft-Exchange-Diagnostics: 1; HE1PR02MB0794; 4:I1r75Jgzj8LdhDEuqzbd3QPtTVnumE8wkVA2F5xVF4VajjbIX0kWEcTYnXOcnWWZPC/7eOI7M6+lr5poIVw7qEUqS7vDzKDO+2wLquFoUwclBusmwwploKKLB8IHDo419zzn/yfynYyKFSBsRuFm+Wcyq58BT2QgpcWokd8CdIWGDRY5Asa6NoEgT6IekpdfybS26DcZnTLywDSHfTogC6NY6UX8mP6kI2iG+drq1yi+MgegViAW0wHgtshV/uxnO8o7KmCSKWA8R/G8kk2MgX/dTk38Z69+yO5TT7diuBI= X-Forefront-PRVS: 0632519F33 X-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xVBAQ1I0mfl6/UBUdnNdgnspxTAJSEMiLzKgGG/vJGmPlVYB6ilyq?= =?us-ascii?Q?6Yx7664ZRmzKAcKCxz92VuSsUdGihprPgjZ69ea+Ch7Mex28szogPqZaFTnk?= =?us-ascii?Q?99P01XxBOnYjyqz28BsTAjwyBkP5qMGtkNrG0K83emz9NP/DLo/J2D1kTBDc?= =?us-ascii?Q?P4=3D?= X-Microsoft-Exchange-Diagnostics: 1; HE1PR02MB0794; 5:J2kMR7Tg+JrNwQmJrv0oXyvDgfqaRRC48A2/biqbdgEntKyNhhb20Qgqu/1aM/CUqXYN2SJiyA0SyyWbfOAAHzOuGYe3GvW/pZKdvGU7HEqfdGOET1uo8yYHxt8aomAWMIg6tyZPKiyBL8Mk/HritA==; 24:epaGh3Sn5Nt2zeGD4rcZc/Ge+Oulct1Qc+JjyZAjUddMxaGGjUf8PrhiBV+7IRSaLsqdXdoRbuH3A10UeBdo5af23y1Uqvub52ctpJZYASk=; 20:LLChD4ZyaMVbGXEsTWPdcSHfjpEiiFFlp0rzXdUkjEXvjWT88Lwksb0HJTmACeCgT8JrQfNLTqYr1CoMXi1H0g== SpamDiagnosticOutput: 1:23 SpamDiagnosticMetadata: NSPM X-OriginatorOrg: ezchip.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 09 Jul 2015 04:59:44.3539 (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: HE1PR02MB0794 Cc: Cyril Chemparathy Subject: [dpdk-dev] [PATCH v4 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 04:59:49 -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: 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