eal/arm: adapt CPU flags check to the arch
authorThomas Monjalon <thomas.monjalon@6wind.com>
Tue, 2 Feb 2016 23:10:24 +0000 (00:10 +0100)
committerThomas Monjalon <thomas.monjalon@6wind.com>
Tue, 16 Feb 2016 07:28:00 +0000 (08:28 +0100)
commit5851aa9171127daea0d951e4a7968e93ef0eef8f
tree330d2877a7826fd3e65d396f5a094d3a78568fdd
parentba560ac30c59a2e2ffd5a108525d322cac6475c1
eal/arm: adapt CPU flags check to the arch

The structure feature_entry does not need leaf/subleaf
which were copied from x86 CPUID implementation.

On x86, a valid flag is detected with the non-zero leaf value.
This check is replaced by a check with a dummy "none" register.

Signed-off-by: Thomas Monjalon <thomas.monjalon@6wind.com>
Acked-by: Jerin Jacob <jerin.jacob@caviumnetworks.com>
Tested-by: Jerin Jacob <jerin.jacob@caviumnetworks.com>
lib/librte_eal/common/arch/arm/rte_cpuflags.c