summaryrefslogtreecommitdiff
path: root/cpu.cpp
diff options
context:
space:
mode:
authorJeffrey Walton <noloader@gmail.com>2020-02-22 16:18:43 -0500
committerJeffrey Walton <noloader@gmail.com>2020-02-22 16:18:43 -0500
commit5d688500414f138491f2ae0d298f9378656fde3c (patch)
treec29177c1cb942d80f41bca4168df2bdd5fcb4974 /cpu.cpp
parentcd16435544d153f820c77a674a9ae4ac5f662e9e (diff)
downloadcryptopp-git-5d688500414f138491f2ae0d298f9378656fde3c.tar.gz
Re-enable SSE2 probes for Solaris
Fix VMAC-64 crash on 32-bit Solaris i86pc
Diffstat (limited to 'cpu.cpp')
-rw-r--r--cpu.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/cpu.cpp b/cpu.cpp
index 127f014a..8fde6886 100644
--- a/cpu.cpp
+++ b/cpu.cpp
@@ -511,9 +511,9 @@ void DetectX86Features()
#endif
// Solaris 11 i86pc does not signal SSE support using
- // OSXSAVE. We need to probe for SSE support. CR4 and
- // bit 18 is not available to userland.
- // TODO: cut something in when testing is available.
+ // OSXSAVE. We need to probe for SSE support.
+ if (g_hasSSE2 == false)
+ g_hasSSE2 = CPU_ProbeSSE2();
if (g_hasSSE2 == false)
goto done;