Skip to content

Commit 83cd290

Browse files
author
duke
committedFeb 1, 2022
Automatic merge of jdk:master into master
2 parents c8319a4 + a18beb4 commit 83cd290

File tree

1 file changed

+8
-9
lines changed

1 file changed

+8
-9
lines changed
 

‎src/hotspot/cpu/x86/vm_version_x86.hpp

+8-9
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright (c) 1997, 2021, Oracle and/or its affiliates. All rights reserved.
2+
* Copyright (c) 1997, 2022, Oracle and/or its affiliates. All rights reserved.
33
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
44
*
55
* This code is free software; you can redistribute it and/or modify it
@@ -148,12 +148,11 @@ class VM_Version : public Abstract_VM_Version {
148148
uint32_t LahfSahf : 1,
149149
CmpLegacy : 1,
150150
: 3,
151-
lzcnt_intel : 1,
152151
lzcnt : 1,
153152
sse4a : 1,
154153
misalignsse : 1,
155154
prefetchw : 1,
156-
: 22;
155+
: 23;
157156
} bits;
158157
};
159158

@@ -640,10 +639,10 @@ class VM_Version : public Abstract_VM_Version {
640639

641640
// Intel features.
642641
if (is_intel()) {
643-
if (_cpuid_info.ext_cpuid1_ecx.bits.lzcnt_intel != 0)
642+
if (_cpuid_info.ext_cpuid1_ecx.bits.lzcnt != 0) {
644643
result |= CPU_LZCNT;
645-
// for Intel, ecx.bits.misalignsse bit (bit 8) indicates support for prefetchw
646-
if (_cpuid_info.ext_cpuid1_ecx.bits.misalignsse != 0) {
644+
}
645+
if (_cpuid_info.ext_cpuid1_ecx.bits.prefetchw != 0) {
647646
result |= CPU_3DNOW_PREFETCH;
648647
}
649648
if (_cpuid_info.sef_cpuid7_ebx.bits.clwb != 0) {
@@ -655,10 +654,10 @@ class VM_Version : public Abstract_VM_Version {
655654

656655
// ZX features.
657656
if (is_zx()) {
658-
if (_cpuid_info.ext_cpuid1_ecx.bits.lzcnt_intel != 0)
657+
if (_cpuid_info.ext_cpuid1_ecx.bits.lzcnt != 0) {
659658
result |= CPU_LZCNT;
660-
// for ZX, ecx.bits.misalignsse bit (bit 8) indicates support for prefetchw
661-
if (_cpuid_info.ext_cpuid1_ecx.bits.misalignsse != 0) {
659+
}
660+
if (_cpuid_info.ext_cpuid1_ecx.bits.prefetchw != 0) {
662661
result |= CPU_3DNOW_PREFETCH;
663662
}
664663
}

0 commit comments

Comments
 (0)
Failed to load comments.