Commit fbb67af9 authored by Cyrill Gorcunov's avatar Cyrill Gorcunov Committed by Andrei Vagin

x86: cpu -- Don't exit early if --cpu-cap=ins specified

Since we're using bintmaps for options don't exit early
if --cpu-cap=ins specified because there might be a
combination of options.
Signed-off-by: 's avatarCyrill Gorcunov <gorcunov@gmail.com>
Reviewed-by: 's avatarDmitry Safonov <0x7f454c46@gmail.com>
Signed-off-by: 's avatarAndrei Vagin <avagin@virtuozzo.com>
parent 5d4e6bd6
......@@ -287,8 +287,10 @@ static int cpu_validate_features(compel_cpuinfo_t *cpu_info)
/*
* Capability on instructions level only.
*/
if (opts.cpu_cap & CPU_CAP_INS)
return cpu_validate_ins_features(cpu_info);
if (opts.cpu_cap & CPU_CAP_INS) {
if (cpu_validate_ins_features(cpu_info))
return -1;
}
/*
* Strict capability mode. Everything must match.
......
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