From: Honnappa Nagarahalli Date: Sun, 2 Sep 2018 18:35:28 +0000 (-0500) Subject: build: enable ARM NEON flag when __aarch64__ defined X-Git-Url: http://git.droids-corp.org/?a=commitdiff_plain;h=68acaa86ae639e3cdd94e419f546045a1b0ce6ca;p=dpdk.git build: enable ARM NEON flag when __aarch64__ defined 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: Jerin Jacob --- diff --git a/config/arm/meson.build b/config/arm/meson.build index 40dbc87f75..94cca490ec 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 60713137da..43ed84155b 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