File tree Expand file tree Collapse file tree 1 file changed +9
-10
lines changed Expand file tree Collapse file tree 1 file changed +9
-10
lines changed Original file line number Diff line number Diff line change 1
1
/*
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.
3
3
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4
4
*
5
5
* This code is free software; you can redistribute it and/or modify it
@@ -147,12 +147,11 @@ class VM_Version : public Abstract_VM_Version {
147
147
uint32_t LahfSahf : 1 ,
148
148
CmpLegacy : 1 ,
149
149
: 3 ,
150
- lzcnt_intel : 1 ,
151
150
lzcnt : 1 ,
152
151
sse4a : 1 ,
153
152
misalignsse : 1 ,
154
153
prefetchw : 1 ,
155
- : 22 ;
154
+ : 23 ;
156
155
} bits;
157
156
};
158
157
@@ -588,21 +587,21 @@ class VM_Version : public Abstract_VM_Version {
588
587
result |= CPU_SSE4A;
589
588
}
590
589
// Intel features.
591
- if (is_intel ()) {
592
- if (_cpuid_info.ext_cpuid1_ecx .bits .lzcnt_intel != 0 )
590
+ if (is_intel ()) {
591
+ if (_cpuid_info.ext_cpuid1_ecx .bits .lzcnt != 0 ) {
593
592
result |= CPU_LZCNT;
594
- // for Intel, ecx.bits.misalignsse bit (bit 8) indicates support for prefetchw
595
- if (_cpuid_info.ext_cpuid1_ecx .bits .misalignsse != 0 ) {
593
+ }
594
+ if (_cpuid_info.ext_cpuid1_ecx .bits .prefetchw != 0 ) {
596
595
result |= CPU_3DNOW_PREFETCH;
597
596
}
598
597
}
599
598
600
599
// ZX features.
601
600
if (is_zx ()) {
602
- if (_cpuid_info.ext_cpuid1_ecx .bits .lzcnt_intel != 0 )
601
+ if (_cpuid_info.ext_cpuid1_ecx .bits .lzcnt != 0 ) {
603
602
result |= CPU_LZCNT;
604
- // for ZX, ecx.bits.misalignsse bit (bit 8) indicates support for prefetchw
605
- if (_cpuid_info.ext_cpuid1_ecx .bits .misalignsse != 0 ) {
603
+ }
604
+ if (_cpuid_info.ext_cpuid1_ecx .bits .prefetchw != 0 ) {
606
605
result |= CPU_3DNOW_PREFETCH;
607
606
}
608
607
}
You can’t perform that action at this time.
0 commit comments