src/cpu/x86/vm/vm_version_x86.cpp

changeset 1495
323bd24c6520
parent 1210
93c14e5562c4
child 1907
c18cbe5936b8
equal deleted inserted replaced
1494:389049f3f393 1495:323bd24c6520
253 #ifdef _LP64 253 #ifdef _LP64
254 // OS should support SSE for x64 and hardware should support at least SSE2. 254 // OS should support SSE for x64 and hardware should support at least SSE2.
255 if (!VM_Version::supports_sse2()) { 255 if (!VM_Version::supports_sse2()) {
256 vm_exit_during_initialization("Unknown x64 processor: SSE2 not supported"); 256 vm_exit_during_initialization("Unknown x64 processor: SSE2 not supported");
257 } 257 }
258 // in 64 bit the use of SSE2 is the minimum
259 if (UseSSE < 2) UseSSE = 2;
258 #endif 260 #endif
259 261
260 // If the OS doesn't support SSE, we can't use this feature even if the HW does 262 // If the OS doesn't support SSE, we can't use this feature even if the HW does
261 if (!os::supports_sse()) 263 if (!os::supports_sse())
262 _cpuFeatures &= ~(CPU_SSE|CPU_SSE2|CPU_SSE3|CPU_SSSE3|CPU_SSE4A|CPU_SSE4_1|CPU_SSE4_2); 264 _cpuFeatures &= ~(CPU_SSE|CPU_SSE2|CPU_SSE3|CPU_SSSE3|CPU_SSE4A|CPU_SSE4_1|CPU_SSE4_2);

mercurial