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); |