mirror of
https://github.com/projectacrn/acrn-hypervisor.git
synced 2025-09-22 01:07:57 +00:00
hv:fixed compilation error in Ubuntu
it uses builtin function(__builtin_popcountl)in bitmap_weight(), it will use the 'popcnt' instruction, this patch enable 'popcnt' instruction support in Makefile Tracked-On: #3663 Signed-off-by: Mingqiang Chi <mingqiang.chi@intel.com>
This commit is contained in:
committed by
ACRN System Integration
parent
c9c02785cb
commit
187fa97e52
@@ -423,6 +423,9 @@ int32_t detect_hardware_support(void)
|
||||
} else if (!pcpu_has_cap(X86_FEATURE_X2APIC)) {
|
||||
printf("%s, x2APIC not supported\n", __func__);
|
||||
ret = -ENODEV;
|
||||
} else if (!pcpu_has_cap(X86_FEATURE_POPCNT)) {
|
||||
printf("%s, popcnt instruction not supported\n", __func__);
|
||||
ret = -ENODEV;
|
||||
} else {
|
||||
ret = check_vmx_mmu_cap();
|
||||
}
|
||||
|
Reference in New Issue
Block a user