From patchwork Wed Aug 22 15:01:07 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Honnappa Nagarahalli X-Patchwork-Id: 144834 Delivered-To: patch@linaro.org Received: by 2002:a2e:164a:0:0:0:0:0 with SMTP id 10-v6csp134406ljw; Wed, 22 Aug 2018 08:01:20 -0700 (PDT) X-Google-Smtp-Source: ANB0VdZ+FQnzZ7vek+x0piansjyBQrpBidPxySDjQCfG38+yc0OpOsPjSH7rxvg0129vqPO+Apz0 X-Received: by 2002:a5d:4e8b:: with SMTP id e11-v6mr4638802wru.32.1534950080344; Wed, 22 Aug 2018 08:01:20 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1534950080; cv=none; d=google.com; s=arc-20160816; b=w+6SiUkrUk25h/6Gv7q4rCwdnLsU8BtJMQrRRprdaHKj0eZTkFamLLBop23J2aqoED iZ5XcCZRKF1nefgY79Xg/jrfZ9dlz7yrMdwKdXdQVrzqPbCyAnYgR2VT4RYQCz63qj9G hdBD54aZpp3m5V/0DueyWjslGu7p0NRZM+a99VJHNQCo3wyeyzV9xtb/9v6ZHaJiNn1l 2dceI39rJJALeVYCYz1+dYgdqX4hF4XkcVsE6mTjj9GJQJc6e0FKEHetj2y7oS7xvNzr yloAW7Yng/0iPI2VXHoy9D1G0rAJvMQvy/lTZtavlTfHz2QChXBtMvTNFYcAziuKAWat tdUQ== 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=1eUZztTf9oLjl0/iu8Bm9BXXXh6MlVRuRIDdsSh95H4=; b=myu7iKMNzDodeAvEbjPMCn0s03VubH/Z8b0yzBmfTunSL3F96oZLjqRVoaAn9G2nyO 8nvwr/1x4qJwNtn8ioUzIPnzTwZDqbw0waRWX4FTdngt99T4yGaqxenQYGcg4g3al/cV 5aSm5vmnmKfFaUQQgOrvm938ZtkFZD2fxyEqxPEaufPXDno/Qld8KVWCKbcf/vyQp8+h 62auEUYTVqrMkG8iMoJQaGYJsIZQuMUTy5tItl6vHxV75CCqoewYGhzXkXC6zHUA12DO CdYtZkIyOYRb6NMJyuUjn50YxPaoQN/UsHr6nyTYPb5KKib2FiSxBJOqk7H6wrw98EQZ a1tg== 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 p66-v6si1706878wme.58.2018.08.22.08.01.20; Wed, 22 Aug 2018 08:01:20 -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 F2F923772; Wed, 22 Aug 2018 17:01:18 +0200 (CEST) Received: from foss.arm.com (usa-sjc-mx-foss1.foss.arm.com [217.140.101.70]) by dpdk.org (Postfix) with ESMTP id 0980F2C38 for ; Wed, 22 Aug 2018 17:01:17 +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 4ADB1ED1; Wed, 22 Aug 2018 08:01:17 -0700 (PDT) Received: from ubuntu.localdomain (u202406.usa.arm.com [10.118.30.59]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id E953A3F2EA; Wed, 22 Aug 2018 08:01:16 -0700 (PDT) From: Honnappa Nagarahalli To: bruce.richardson@intel.com Cc: dev@dpdk.org, gavin.hu@arm.com, rasland@mellanox.com, therbert@redhat.com, honnappa.nagarahalli@arm.com Date: Wed, 22 Aug 2018 10:01:07 -0500 Message-Id: <1534950067-113999-1-git-send-email-honnappa.nagarahalli@arm.com> X-Mailer: git-send-email 2.7.4 Subject: [dpdk-dev] [PATCH] 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 Signed-off-by: Honnappa Nagarahalli Reviewed-by: Phil Yang Reviewed-by: Gavin Hu Reported-by: Raslan Darawsheh Reported-by: Thomas F Herbert --- config/arm/meson.build | 3 ++- mk/rte.cpuflags.mk | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) -- 2.17.1 Acked-by: Gavin Hu Reported-by: Signed-off-by: Acked-by: Jerin Jacob diff --git a/config/arm/meson.build b/config/arm/meson.build index 40dbc87f7..94cca490e 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 60713137d..43ed84155 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