Fix detection of power8
The power8 feature is defined in hwcap2
This commit is contained in:
parent
e0d085132a
commit
a2b98a167e
1 changed files with 1 additions and 1 deletions
|
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue