8296429: Remove os::supports_sse
Reviewed-by: stuefe
This commit is contained in:
parent
813b223a6b
commit
e72b0ac4af
src/hotspot
cpu/x86
os_cpu
bsd_x86
linux_x86
windows_aarch64
windows_x86
share/runtime
@ -854,9 +854,6 @@ void VM_Version::get_processor_features() {
|
||||
_data_cache_line_flush_size = _cpuid_info.std_cpuid1_ebx.bits.clflush_size * 8;
|
||||
}
|
||||
#endif
|
||||
// If the OS doesn't support SSE, we can't use this feature even if the HW does
|
||||
if (!os::supports_sse())
|
||||
_features &= ~(CPU_SSE|CPU_SSE2|CPU_SSE3|CPU_SSSE3|CPU_SSE4A|CPU_SSE4_1|CPU_SSE4_2);
|
||||
|
||||
if (UseSSE < 4) {
|
||||
_features &= ~CPU_SSE4_1;
|
||||
|
@ -636,13 +636,6 @@ void os::Bsd::init_thread_fpu_state(void) {
|
||||
#endif // !AMD64
|
||||
}
|
||||
|
||||
|
||||
// Check that the bsd kernel version is 2.4 or higher since earlier
|
||||
// versions do not support SSE without patches.
|
||||
bool os::supports_sse() {
|
||||
return true;
|
||||
}
|
||||
|
||||
juint os::cpu_microcode_revision() {
|
||||
juint result = 0;
|
||||
char data[8];
|
||||
|
@ -443,24 +443,6 @@ void os::Linux::set_fpu_control_word(int fpu_control) {
|
||||
#endif // !AMD64
|
||||
}
|
||||
|
||||
// Check that the linux kernel version is 2.4 or higher since earlier
|
||||
// versions do not support SSE without patches.
|
||||
bool os::supports_sse() {
|
||||
#ifdef AMD64
|
||||
return true;
|
||||
#else
|
||||
struct utsname uts;
|
||||
if( uname(&uts) != 0 ) return false; // uname fails?
|
||||
char *minor_string;
|
||||
int major = strtol(uts.release,&minor_string,10);
|
||||
int minor = strtol(minor_string+1,NULL,10);
|
||||
bool result = (major > 2 || (major==2 && minor >= 4));
|
||||
log_info(os)("OS version is %d.%d, which %s support SSE/SSE2",
|
||||
major,minor, result ? "DOES" : "does NOT");
|
||||
return result;
|
||||
#endif // AMD64
|
||||
}
|
||||
|
||||
juint os::cpu_microcode_revision() {
|
||||
// Note: this code runs on startup, and therefore should not be slow,
|
||||
// see JDK-8283200.
|
||||
|
@ -275,10 +275,6 @@ void os::print_register_info(outputStream *st, const void *context) {
|
||||
void os::setup_fpu() {
|
||||
}
|
||||
|
||||
bool os::supports_sse() {
|
||||
return true;
|
||||
}
|
||||
|
||||
#ifndef PRODUCT
|
||||
void os::verify_stack_alignment() {
|
||||
assert(((intptr_t)os::current_stack_pointer() & (StackAlignmentInBytes-1)) == 0, "incorrect stack alignment");
|
||||
|
@ -565,7 +565,3 @@ int os::extra_bang_size_in_bytes() {
|
||||
// JDK-8050147 requires the full cache line bang for x86.
|
||||
return VM_Version::L1_line_size();
|
||||
}
|
||||
|
||||
bool os::supports_sse() {
|
||||
return true;
|
||||
}
|
||||
|
@ -947,7 +947,6 @@ class os: AllStatic {
|
||||
inline static bool zero_page_read_protected();
|
||||
|
||||
static void setup_fpu();
|
||||
static bool supports_sse();
|
||||
static juint cpu_microcode_revision();
|
||||
|
||||
static inline jlong rdtsc();
|
||||
|
Loading…
x
Reference in New Issue
Block a user