Commit b2009641 authored by Adrian Reber's avatar Adrian Reber Committed by Andrei Vagin

zdtm/static/fpu01: check for OSXSAVE instead of XSAVE

When checking for XSAVE availability it makes more sense
to check for OSXSAVE than to check for XSAVE. This way the
check works on systems booted with the 'noxsave' kernel
command-line.

travis-ci: success for zdtm/static/fpu01: check for OSXSAVE instead of XSAVE
Signed-off-by: 's avatarAdrian Reber <areber@redhat.com>
Signed-off-by: 's avatarPavel Emelyanov <xemul@virtuozzo.com>
parent 8512efdf
......@@ -19,7 +19,7 @@ static int verify_cpu(void)
/* Do we have xsave? */
cpuid(1, &eax, &ebx, &ecx, &edx);
if (!(ecx & (1u << 26)))
if (!(ecx & (1u << 27)))
return -1;
/* Is YMM here? */
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment