8000 do not guard the parsing of `os_xsave` · python/cpython@16b2aed · GitHub
[go: up one dir, main page]

Skip to content

Commit 16b2aed

Browse files
committed
do not guard the parsing of os_xsave
1 parent f3bd027 commit 16b2aed

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

Python/cpuinfo.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -259,9 +259,10 @@ detect_simd_features(py_simd_features *flags,
259259
#ifdef SIMD_AVX_INSTRUCTIONS_DETECTION_GUARD
260260
#ifdef CAN_COMPILE_SIMD_AVX_INSTRUCTIONS
261261
flags->avx = CPUID_CHECK_REG(ecx, ECX_L1_AVX);
262-
flags->os_xsave = CPUID_CHECK_REG(ecx, ECX_L1_OSXSAVE);
263262
#endif
264263
#endif
264+
265+
flags->os_xsave = CPUID_CHECK_REG(ecx, ECX_L1_OSXSAVE);
265266
}
266267

267268
/* Extended Feature Bits (LEAF=7, SUBLEAF=0). */

0 commit comments

Comments
 (0)
0