Skip to content

Commit

Permalink
Fix CPU feature detection on older Celerons
Browse files Browse the repository at this point in the history
  • Loading branch information
noloader committed Oct 12, 2023
1 parent 19f0e3a commit af7d105
Showing 1 changed file with 7 additions and 6 deletions.
13 changes: 7 additions & 6 deletions cpu.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -603,15 +603,16 @@ 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.
// OSXSAVE. Additionally, Fedora 38 on a 2015 Celeron
// N3700 does not set OSXSAVE. So we need to explicitly
// probe for SSE support on rare occasions. Ugh...
if (g_hasSSE2 == false)
{
g_hasSSE2 = CPU_ProbeSSE2();
#endif

if (g_hasSSE2 == false)
goto done;
if (g_hasSSE2 == false)
goto done;
}

g_hasSSSE3 = (cpuid1[ECX_REG] & SSSE3_FLAG) != 0;
g_hasSSE41 = (cpuid1[ECX_REG] & SSE41_FLAG) != 0;
Expand Down

0 comments on commit af7d105

Please sign in to comment.