Skip to content

Commit d7d01e7

Browse files
xvanc48cf
authored andcommitted
fix QEMU crash when running with HVF on macOS
QEMU crashes on macOS (specifically when the local APIC is accessed) when running with HVF and `-cpu host`. Using `-cpu qemu64` seems to fix the issue.
1 parent e4ec597 commit d7d01e7

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

aero.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -478,10 +478,9 @@ def run_in_emulator(args, iso_path):
478478
print("Running with KVM acceleration enabled")
479479

480480
if platform.system() == 'Darwin':
481-
qemu_args += ['-accel', 'hvf']
481+
qemu_args += ['-accel', 'hvf', '-cpu', 'qemu64,+la57' if args.la57 else 'qemu64']
482482
else:
483-
qemu_args += ['-enable-kvm']
484-
qemu_args += ['-cpu', 'host,+la57' if args.la57 else 'host']
483+
qemu_args += ['-enable-kvm', '-cpu', 'host,+la57' if args.la57 else 'host']
485484
else:
486485
qemu_args += ["-cpu", "qemu64,+la57" if args.la57 else "qemu64"]
487486

0 commit comments

Comments
 (0)