From patchwork Sun Sep 2 18:35:28 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Honnappa Nagarahalli X-Patchwork-Id: 145735 Delivered-To: patch@linaro.org Received: by 2002:a2e:1648:0:0:0:0:0 with SMTP id 8-v6csp1712597ljw; Sun, 2 Sep 2018 11:37:52 -0700 (PDT) X-Google-Smtp-Source: ANB0VdY/GDkK2AR3C4jPchgjOrH7vWX5hQBIN4u8881q9IkSkMismXFwhHsRIdSxRVDiD7XIMyiE X-Received: by 2002:a5d:484f:: with SMTP id n15-v6mr15787551wrs.234.1535913472485; Sun, 02 Sep 2018 11:37:52 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1535913472; cv=none; d=google.com; s=arc-20160816; b=IEybWsSoQUGi9Po6MFlmac4QhsXxmV4stKLzAlHC00gpAlkmRiCVSQB2lIzYzvkDYb ILyeHhAVestBHV2L+FfQWxxLr8mX3YN89Ow2lry2Dn5dfQDyjSUiPEZvdOKV2LJkeAAK we+av0LdFz59YWcFlI95QeuY2ssIKwidmkaZNdDUYFiM956grgEvRUNdobYrQZIu6eoa o38S/2flavwf90FEbaL3tAULpJCA4Fz8ask/6TlHTRgTCvdf5LWHrPLs6EqEZDjjsNYe EmjOMGQGvnWUqVUZBOs8lA+YMlqRYaNmDB0ko0xHSULtxjtjnkcPFLBVzOs1gVtcne5x BnHw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:list-subscribe:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:subject:message-id:date:cc:to :from:arc-authentication-results; bh=0lkNIsLqIHdiTLOgc+frxpogIeP4wlu/Wwae+Vqaj2s=; b=KOoHBJRgOsockxOX3l+uE1db7+fz2baBo62OSkLX5m99Zeh+3AVsvEnYhLTrN2Net0 35ZQ/EkO+Zba6mcG4qj+EtTTFsjipkBuJCQ2w2DvjjYSnCoU2lTvZg7ox+RFxst98YWN XpZoxop2rOj0gfO8ad4H13g8ejbMJEQgK+Hc/1wE1U2BIWJq08WlW6bhvHqVkMcZyZAh tyE8YIbfPUd6q5JbG9dH2oaO0MUa1Tx6Us0VcIaE4l/gxvbEVUrEV8epCE3tjEOK7i05 BU7RkOe5p1BqmDSEpJqj7xSH4PEDWzlKB7nOnxyYYSs283VEUZBfpcnAdJK2JMzWzKCV Zhlg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of dev-bounces@dpdk.org designates 92.243.14.124 as permitted sender) smtp.mailfrom=dev-bounces@dpdk.org Return-Path: Received: from dpdk.org (dpdk.org. [92.243.14.124]) by mx.google.com with ESMTP id 14-v6si13455726wrb.264.2018.09.02.11.37.51; Sun, 02 Sep 2018 11:37:52 -0700 (PDT) Received-SPF: pass (google.com: domain of dev-bounces@dpdk.org designates 92.243.14.124 as permitted sender) client-ip=92.243.14.124; Authentication-Results: mx.google.com; spf=pass (google.com: domain of dev-bounces@dpdk.org designates 92.243.14.124 as permitted sender) smtp.mailfrom=dev-bounces@dpdk.org Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 99EA74CBD; Sun, 2 Sep 2018 20:37:50 +0200 (CEST) Received: from foss.arm.com (foss.arm.com [217.140.101.70]) by dpdk.org (Postfix) with ESMTP id 867C71DBE; Sun, 2 Sep 2018 20:37:49 +0200 (CEST) Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.72.51.249]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id C8A4080D; Sun, 2 Sep 2018 11:37:48 -0700 (PDT) Received: from ubuntu.localdomain (unknown [10.119.48.86]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id 2DAFB3F575; Sun, 2 Sep 2018 11:37:45 -0700 (PDT) From: Honnappa Nagarahalli To: dev@dpdk.org Cc: stable@dpdk.org, jerin.jacob@caviumnetworks.com, rasland@mellanox.com, therbert@redhat.com, honnappa.nagarahalli@arm.com, nd@arm.com Date: Sun, 2 Sep 2018 13:35:28 -0500 Message-Id: <1535913328-22493-1-git-send-email-honnappa.nagarahalli@arm.com> X-Mailer: git-send-email 2.7.4 Subject: [dpdk-dev] [PATCH v2] build: enable Arm NEON flags when __aarch64__ is defined X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Sender: "dev" GCC version 4.8.5 does not pre-define __ARM_NEON. NEON is not optional for ArmV8. Hence NEON related code can be enabled when __aarch64__ is defined. Bugzilla ID: 82 Cc: stable@dpdk.org Reported-by: Raslan Darawsheh Reported-by: Thomas F Herbert Signed-off-by: Honnappa Nagarahalli Reviewed-by: Phil Yang Reviewed-by: Gavin Hu Acked-by: Gavin Hu Acked-by: Jerin Jacob --- V2: * Corrected the order of contribution tags * Added Jerin's Ack config/arm/meson.build | 3 ++- mk/rte.cpuflags.mk | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) -- 2.7.4 diff --git a/config/arm/meson.build b/config/arm/meson.build index 40dbc87..94cca49 100644 --- a/config/arm/meson.build +++ b/config/arm/meson.build @@ -157,7 +157,8 @@ else endif message(machine_args) -if cc.get_define('__ARM_NEON', args: machine_args) != '' +if (cc.get_define('__ARM_NEON', args: machine_args) != '' or + cc.get_define('__aarch64__', args: machine_args) != '') dpdk_conf.set('RTE_MACHINE_CPUFLAG_NEON', 1) compile_time_cpuflags += ['RTE_CPUFLAG_NEON'] endif diff --git a/mk/rte.cpuflags.mk b/mk/rte.cpuflags.mk index 6071313..43ed841 100644 --- a/mk/rte.cpuflags.mk +++ b/mk/rte.cpuflags.mk @@ -89,7 +89,7 @@ CPUFLAGS += VSX endif # ARM flags -ifneq ($(filter $(AUTO_CPUFLAGS),__ARM_NEON),) +ifneq ($(filter __ARM_NEON __aarch64__,$(AUTO_CPUFLAGS)),) CPUFLAGS += NEON endif