eal/ppc: adapt CPU flags check to the arch
authorThomas Monjalon <thomas.monjalon@6wind.com>
Tue, 2 Feb 2016 23:10:25 +0000 (00:10 +0100)
committerThomas Monjalon <thomas.monjalon@6wind.com>
Tue, 16 Feb 2016 07:28:00 +0000 (08:28 +0100)
commit9369dcb7a6800b1608fb02f9c30dd0cb77a46693
treebbedaaaa90d8d15862a56d781af86f1d2b8816cb
parent5851aa9171127daea0d951e4a7968e93ef0eef8f
eal/ppc: 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>
lib/librte_eal/common/arch/ppc_64/rte_cpuflags.c