mirror of
https://github.com/foxlet/macOS-Simple-KVM
synced 2024-11-25 20:50:18 +00:00
[CONF] Add popcount instruction
Although Penryn processor did not have popcount instruction, adding it here works. This is e. g. required for OpenCV, since even when compiling from source, the detection seems to fail (in OpenCV 4.5.2_4 built with homebrew) and popcount is always recognized also in case it is not added in the CPU configuration. This commit fixes this issue.
This commit is contained in:
parent
527588d5a2
commit
f1a7e547d2
1 changed files with 1 additions and 1 deletions
2
basic.sh
2
basic.sh
|
@ -11,7 +11,7 @@ qemu-system-x86_64 \
|
|||
-m 2G \
|
||||
-machine q35,accel=kvm \
|
||||
-smp 4,cores=2 \
|
||||
-cpu Penryn,vendor=GenuineIntel,kvm=on,+sse3,+sse4.2,+aes,+xsave,+avx,+xsaveopt,+xsavec,+xgetbv1,+avx2,+bmi2,+smep,+bmi1,+fma,+movbe,+invtsc \
|
||||
-cpu Penryn,vendor=GenuineIntel,kvm=on,+sse3,+sse4.2,+popcnt,+aes,+xsave,+avx,+xsaveopt,+xsavec,+xgetbv1,+avx2,+bmi2,+smep,+bmi1,+fma,+movbe,+invtsc \
|
||||
-device isa-applesmc,osk="$OSK" \
|
||||
-smbios type=2 \
|
||||
-drive if=pflash,format=raw,readonly,file="$OVMF/OVMF_CODE.fd" \
|
||||
|
|
Loading…
Reference in a new issue