fix(build): run qemu with invtsc

This commit is contained in:
Loïc Grégoire
2026-04-11 15:18:07 -04:00
parent e2af1397dd
commit 1a91a0bf52
+1 -1
View File
@@ -54,7 +54,7 @@ pub fn addRun(b: *std.Build, kernel: *std.Build.Step.Compile, plat: config.Platf
.x86_64 => {
qemu.addArgs(&.{ "-serial", "stdio", "-m", "1G", "-smp", "4" });
if (!debug) qemu.addArgs(&.{ "-enable-kvm", "-cpu", "host" });
if (!debug) qemu.addArgs(&.{ "-enable-kvm", "-cpu", "host,+invtsc" });
},
.aarch64 => qemu.addArgs(&.{ "-machine", "virt", "-cpu", "cortex-a57" }),
.riscv64 => qemu.addArgs(&.{ "-machine", "virt" }),