fix(quickemu): remove duplicate +invtsc flag for AMD macOS guests
The invtsc flag is already added by the configure_cpu_flag loop when check_cpu_flag recognises constant_tsc as equivalent to invtsc on AMD. Adding it again in the AMD-specific TSC block caused duplication. Only +tsc and +tsc-deadline are needed as additional flags.
This commit is contained in:
parent
3cfbfb1a30
commit
9cc54ff365
2
quickemu
2
quickemu
|
|
@ -474,7 +474,7 @@ function configure_cpu() {
|
||||||
# AMD CPUs with constant_tsc need explicit TSC flags for macOS stability
|
# AMD CPUs with constant_tsc need explicit TSC flags for macOS stability
|
||||||
# constant_tsc is AMD's equivalent of Intel's invtsc
|
# constant_tsc is AMD's equivalent of Intel's invtsc
|
||||||
if [ "${HOST_CPU_VENDOR}" == "AuthenticAMD" ] && check_cpu_flag invtsc; then
|
if [ "${HOST_CPU_VENDOR}" == "AuthenticAMD" ] && check_cpu_flag invtsc; then
|
||||||
CPU+=",+tsc,+tsc-deadline,+invtsc"
|
CPU+=",+tsc,+tsc-deadline"
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue