config/arm: check SVE CPU flag
authorChengwen Feng <fengchengwen@huawei.com>
Fri, 21 May 2021 03:33:54 +0000 (11:33 +0800)
committerThomas Monjalon <thomas@monjalon.net>
Wed, 23 Jun 2021 07:32:39 +0000 (09:32 +0200)
commit3c1199c2db62c25480e7af64bf799e287377bfe8
treea84da4b9d4cd6ad5ad7d16a8ca8804e7491a751a
parentcfdaa678b3bbff51fe152c18621c751867c70bd2
config/arm: check SVE CPU flag

If compiled with SVE feature (e.g. "-march=armv8.2-a+sve'), the binary
could not run on non-SVE platform else it will encounter illegal
instruction [1].

This patch fixes it by adding 'RTE_CPUFLAG_SVE' to compile_time_cpuflags,
so that rte_cpu_is_supported() will print meaningful log under above
situation.

[1] http://mails.dpdk.org/archives/dev/2021-May/209124.html

Signed-off-by: Chengwen Feng <fengchengwen@huawei.com>
Acked-by: Ruifeng Wang <ruifeng.wang@arm.com>
config/arm/meson.build