diff --git a/src/hotspot/cpu/x86/vm_version_x86.cpp b/src/hotspot/cpu/x86/vm_version_x86.cpp index 615e892cd0b..efb282ce3f2 100644 --- a/src/hotspot/cpu/x86/vm_version_x86.cpp +++ b/src/hotspot/cpu/x86/vm_version_x86.cpp @@ -2841,6 +2841,10 @@ VM_Version::VM_Features VM_Version::CpuidInfo::feature_flags() const { // clflush_size is size in quadwords (8 bytes). guarantee(_cpuid_info.std_cpuid1_ebx.bits.clflush_size == ICache::line_size/8, "clflush size is not supported"); + // sse and sse2 are guaranteed to be present + vm_features.set_feature(CPU_SSE); + vm_features.set_feature(CPU_SSE2); + if (std_cpuid1_edx.bits.cmpxchg8 != 0) vm_features.set_feature(CPU_CX8); if (std_cpuid1_edx.bits.cmov != 0) diff --git a/src/hotspot/cpu/x86/vm_version_x86.hpp b/src/hotspot/cpu/x86/vm_version_x86.hpp index 895987b56ce..2fb1af71a10 100644 --- a/src/hotspot/cpu/x86/vm_version_x86.hpp +++ b/src/hotspot/cpu/x86/vm_version_x86.hpp @@ -381,6 +381,8 @@ protected: decl(HT, ht ) \ decl(3DNOW_PREFETCH, 3dnowpref ) /* Processor supports 3dnow prefetch and prefetchw instructions */ \ /* may not necessarily support other 3dnow instructions */ \ + decl(SSE, sse ) \ + decl(SSE2, sse2 ) \ decl(SSE3, sse3 ) /* SSE3 comes from cpuid 1 (ECX) */ \ decl(SSSE3, ssse3 ) \ decl(SSE4A, sse4a ) \ diff --git a/test/hotspot/jtreg/serviceability/sa/ClhsdbLongConstant.java b/test/hotspot/jtreg/serviceability/sa/ClhsdbLongConstant.java index 051dd397db1..e0fed251f73 100644 --- a/test/hotspot/jtreg/serviceability/sa/ClhsdbLongConstant.java +++ b/test/hotspot/jtreg/serviceability/sa/ClhsdbLongConstant.java @@ -107,7 +107,7 @@ public class ClhsdbLongConstant { // Expected value obtained from the CPU_SHA definition in vm_version_x86.hpp checkLongValue("VM_Version::CPU_SHA ", longConstantOutput, - 31L); + 33L); } }