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
@@ -148,12 +148,11 @@ class VM_Version : public Abstract_VM_Version {
148
148
uint32_t LahfSahf : 1 ,
149
149
CmpLegacy : 1 ,
150
150
: 3 ,
151
- lzcnt_intel : 1 ,
152
151
lzcnt : 1 ,
153
152
sse4a : 1 ,
154
153
misalignsse : 1 ,
155
154
prefetchw : 1 ,
156
- : 22 ;
155
+ : 23 ;
157
156
} bits;
158
157
};
159
158
@@ -637,10 +636,10 @@ enum Extended_Family {
637
636
638
637
// Intel features.
639
638
if (is_intel ()) {
640
- if (_cpuid_info.ext_cpuid1_ecx .bits .lzcnt_intel != 0 )
639
+ if (_cpuid_info.ext_cpuid1_ecx .bits .lzcnt != 0 ) {
641
640
result |= CPU_LZCNT;
642
- // for Intel, ecx.bits.misalignsse bit (bit 8) indicates support for prefetchw
643
- if (_cpuid_info.ext_cpuid1_ecx .bits .misalignsse != 0 ) {
641
+ }
642
+ if (_cpuid_info.ext_cpuid1_ecx .bits .prefetchw != 0 ) {
644
643
result |= CPU_3DNOW_PREFETCH;
645
644
}
646
645
if (_cpuid_info.sef_cpuid7_ebx .bits .clwb != 0 ) {
@@ -650,10 +649,10 @@ enum Extended_Family {
650
649
651
650
// ZX features.
652
651
if (is_zx ()) {
653
- if (_cpuid_info.ext_cpuid1_ecx .bits .lzcnt_intel != 0 )
652
+ if (_cpuid_info.ext_cpuid1_ecx .bits .lzcnt != 0 ) {
654
653
result |= CPU_LZCNT;
655
- // for ZX, ecx.bits.misalignsse bit (bit 8) indicates support for prefetchw
656
- if (_cpuid_info.ext_cpuid1_ecx .bits .misalignsse != 0 ) {
654
+ }
655
+ if (_cpuid_info.ext_cpuid1_ecx .bits .prefetchw != 0 ) {
657
656
result |= CPU_3DNOW_PREFETCH;
658
657
}
659
658
}
0 commit comments