Fix detection of power8

The power8 feature is defined in hwcap2
This commit is contained in:
MikaelUrankar 2019-05-11 15:23:35 +02:00 committed by Luca Barbato
parent e0d085132a
commit a2b98a167e

View file

@ -27,7 +27,7 @@ fn detect_features() -> cache::Initializer {
// index of the bit to test like in ARM and Aarch64)
enable_feature(&mut value, Feature::altivec, auxv.hwcap & 0x10000000 != 0);
enable_feature(&mut value, Feature::vsx, auxv.hwcap & 0x00000080 != 0);
enable_feature(&mut value, Feature::power8, auxv.hwcap & 0x80000000 != 0);
enable_feature(&mut value, Feature::power8, auxv.hwcap2 & 0x80000000 != 0);
return value;
}