Skip to content

Commit 9cc54ff

Browse files
committed
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.
1 parent 3cfbfb1 commit 9cc54ff

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

quickemu

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -474,7 +474,7 @@ function configure_cpu() {
474474
# AMD CPUs with constant_tsc need explicit TSC flags for macOS stability
475475
# constant_tsc is AMD's equivalent of Intel's invtsc
476476
if [ "${HOST_CPU_VENDOR}" == "AuthenticAMD" ] && check_cpu_flag invtsc; then
477-
CPU+=",+tsc,+tsc-deadline,+invtsc"
477+
CPU+=",+tsc,+tsc-deadline"
478478
fi
479479
fi
480480

0 commit comments

Comments
 (0)