mirror of
https://github.com/checkpoint-restore/criu.git
synced 2026-01-23 02:14:37 +00:00
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: Adrian Reber <areber@redhat.com> Signed-off-by: Pavel Emelyanov <xemul@virtuozzo.com>
This commit is contained in:
parent
8512efdf88
commit
b2009641c4
1 changed files with 1 additions and 1 deletions
|
|
@ -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? */
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue