Detect Power8 in-core crypto through getauxval?
问题 I'm on GCC112, which is a little-endian Power8 machine running Linux. Power8 has in-core crypto providing AES, SHA and a few other useful features. I'm trying to determine the availability of the features at runtime using getauxval . The use case is distros building for a "minimum" capable machine, and we need to swap-in a faster function at runtime. The dump of hwcaps.h is shown below, but it lacks specific bits for Power8, AES, SHA and others. However, I believe Power8 is ISA 2.07, and ISA