fix: add popcnt to CPU flags to enable for macOS

This commit is contained in:
Martin Wimpress 2024-05-09 11:16:26 +01:00 committed by Martin Wimpress
parent 341c44e372
commit c727734a08
1 changed files with 1 additions and 6 deletions

View File

@ -547,13 +547,8 @@ function vm_boot() {
fi;; fi;;
esac esac
# https://www.techpowerup.com/cpu-specs/xeon-w-2140b.c2953 8 cores 16 threads # skylake server
# https://en.wikipedia.org/wiki/IMac_Pro#Technical_specifications Orig: High Sierra Max: Sonoma
# https://en.wikipedia.org/wiki/MacOS#Hardware_compatibility needs 8GB RAM
# https://qemu.readthedocs.io/en/v9.0.0/system/qemu-cpu-models.html#important-cpu-features-for-amd-x86-hosts
# https://www.reddit.com/r/hackintosh/comments/141wnjk/state_of_macos_14_sonoma_on_x86/
for FLAG in abm adx aes amd-ssbd bmi1 bmi2 cx8 eist ept f16c fma invtsc \ for FLAG in abm adx aes amd-ssbd bmi1 bmi2 cx8 eist ept f16c fma invtsc \
mmx movbe mpx pdpe1gb smep vaes vbmi2 vpclmulqdq \ mmx movbe mpx pdpe1gb popcnt smep vaes vbmi2 vpclmulqdq \
xgetbv1 xsave xsaveopt; do xgetbv1 xsave xsaveopt; do
if check_cpu_flag "${FLAG}"; then if check_cpu_flag "${FLAG}"; then
CPU+=",+${FLAG}" CPU+=",+${FLAG}"