fill "show cpu" Flag list on aarch64 platforms (VPP-1065) 27/9727/3
authorGabriel Ganne <gabriel.ganne@enea.com>
Tue, 5 Dec 2017 13:26:33 +0000 (14:26 +0100)
committerDamjan Marion <dmarion.lists@gmail.com>
Tue, 5 Dec 2017 18:19:43 +0000 (18:19 +0000)
commit73cb0062e30ec09aa38bc98d91cbdfc86a8fb6c0
treeeae2d395ed3a37db5183046b9647a432f257ae77
parent2aef64f04ed9a43cd0a2a9a1616069a24c14eef8
fill "show cpu" Flag list on aarch64 platforms (VPP-1065)

use getauxval(AT_HWCAP) to get the processor capabilities.
The result should be the same as calling
  cat /proc/cpuinfo | grep Feature | head -n1

All but one (aes) features have a different name.
handle aes by adding it an arch prefix, which is skipped during print
and a clib_cpu_supports_aes() custom function.

Change-Id: If9830bd5a17bac1bd1b5337dacbb0ddbb8ed6b18
Signed-off-by: Gabriel Ganne <gabriel.ganne@enea.com>
src/vppinfra/cpu.c
src/vppinfra/cpu.h