Mercurial > hg > truffle
comparison src/cpu/x86/vm/vm_version_x86.cpp @ 1060:323bd24c6520
6769124: various 64-bit fixes for c1
Reviewed-by: never
author | roland |
---|---|
date | Mon, 02 Nov 2009 11:17:55 +0100 |
parents | 93c14e5562c4 |
children | c18cbe5936b8 |
comparison
equal
deleted
inserted
replaced
1059:389049f3f393 | 1060: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); |