From 0d9cd947a09333ec3f9d4e6cda77be3b102c6294 Mon Sep 17 00:00:00 2001 From: Jeffrey Walton Date: Sun, 25 Jun 2023 17:09:33 -0400 Subject: [PATCH] Avoid call to CPU_ProbeSSE2 in DetectX86Features (GH #1162) The call was a workaround for Solaris. Limit it to Solaris. --- cpu.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/cpu.cpp b/cpu.cpp index ec107db12..eafac604e 100644 --- a/cpu.cpp +++ b/cpu.cpp @@ -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;