Avoid call to CPU_ProbeSSE2 in DetectX86Features (GH #1162)

The call was a workaround for Solaris. Limit it to Solaris.
This commit is contained in:
Jeffrey Walton 2023-06-25 17:09:33 -04:00
parent a23f78d116
commit 0d9cd947a0
No known key found for this signature in database
GPG Key ID: B36AB348921B1838

View File

@ -599,10 +599,12 @@ void DetectX86Features()
(cpuid1[ECX_REG] & OSXSAVE_FLAG) != 0;
#endif
#if defined(__sun)
// Solaris 11 i86pc does not signal SSE support using
// OSXSAVE. We need to probe for SSE support.
if (g_hasSSE2 == false)
g_hasSSE2 = CPU_ProbeSSE2();
#endif
if (g_hasSSE2 == false)
goto done;