build: fix default arm64 instruction level
authorJerin Jacob <jerin.jacob@caviumnetworks.com>
Mon, 9 Apr 2018 14:39:46 +0000 (20:09 +0530)
committerBruce Richardson <bruce.richardson@intel.com>
Tue, 17 Apr 2018 14:40:09 +0000 (16:40 +0200)
The make based build system has crc+crypto instruction
support for the default arm64 build.
http://dpdk.org/browse/dpdk/tree/mk/machine/armv8a/rte.vars.mk#n31

This patch fixes the disparity with meson build flags for armv8.
As a bonus, This patch fixes the following errors with
ip_pipeline example application.

Assembler messages:
Error: selected processor does not support `crc32cx w3,w3,x0'

Fixes: c6e536e38437 ("build: add more implementers IDs and PNs for ARM")

Signed-off-by: Jerin Jacob <jerin.jacob@caviumnetworks.com>
Tested-by: Bruce Richardson <bruce.richardson@intel.com>
Acked-by: Hemant Agrawal <hemant.agrawal@nxp.com>
config/arm/meson.build

index e9c9eb1..5ad926e 100644 (file)
@@ -8,7 +8,7 @@ march_opt = '-march=@0@'.format(machine)
 arm_force_native_march = false
 
 machine_args_generic = [
-       ['default', ['-march=armv8-a']],
+       ['default', ['-march=armv8-a+crc+crypto']],
        ['native', ['-march=native']],
        ['0xd03', ['-mcpu=cortex-a53']],
        ['0xd04', ['-mcpu=cortex-a35']],