Added more checks to Haswell identification..

This commit is contained in:
dev
2015-12-15 20:34:28 +00:00
parent 93fbdcd443
commit 1f4a266c22
2 changed files with 3 additions and 3 deletions

View File

@ -62,8 +62,7 @@ public class CPUIDCPUInfo implements CPUInfo
* @since 0.9.21
*/
public boolean hasAVX2() {
return this.hasABM() &&
(CPUID.getExtendedEBXFeatureFlags() & (1 << 5)) != 0; //Extended EBX Feature Bit 5
return (CPUID.getExtendedEBXFeatureFlags() & (1 << 5)) != 0; //Extended EBX Feature Bit 5
}
/**

View File

@ -377,7 +377,8 @@ class IntelInfoImpl extends CPUIDCPUInfo implements IntelCPUInfo
case 0x45:
case 0x46:
CPUIDCPUInfo c = new CPUIDCPUInfo();
if (c.hasAVX2() && c.hasBMI1() && c.hasBMI2()) {
if (c.hasAVX2() && c.hasBMI1() && c.hasBMI2() &&
c.hasFMA3() && c.hasMOVBE() && c.hasABM()) {
isSandyCompatible = true;
isIvyCompatible = true;
isHaswellCompatible = true;