mirror of
https://gitlab.redox-os.org/redox-os/redox.git
synced 2026-07-03 18:18:44 +08:00
Use HVF Acceleration by default for MacOS Silicon
This commit is contained in:
parent
afda0c0c20
commit
aad831766c
11
mk/qemu.mk
11
mk/qemu.mk
@ -80,6 +80,11 @@ else ifeq ($(ARCH),aarch64)
|
|||||||
QEMUFLAGS+=-device qemu-xhci -device usb-kbd -device usb-tablet
|
QEMUFLAGS+=-device qemu-xhci -device usb-kbd -device usb-tablet
|
||||||
endif
|
endif
|
||||||
endif
|
endif
|
||||||
|
|
||||||
|
# Default to using HVF when host is MacOS Silicon
|
||||||
|
ifeq ($(HOST_ARCH),arm64)
|
||||||
|
kvm?=yes
|
||||||
|
endif
|
||||||
else ifeq ($(ARCH),riscv64gc)
|
else ifeq ($(ARCH),riscv64gc)
|
||||||
live=no
|
live=no
|
||||||
efi=yes
|
efi=yes
|
||||||
@ -243,7 +248,11 @@ ifeq ($(UNAME),Linux)
|
|||||||
endif
|
endif
|
||||||
|
|
||||||
ifeq ($(UNAME),Darwin)
|
ifeq ($(UNAME),Darwin)
|
||||||
QEMUFLAGS+=-cpu $(QEMU_CPU)
|
ifneq ($(kvm),no)
|
||||||
|
QEMUFLAGS+=-accel hvf -cpu max
|
||||||
|
else
|
||||||
|
QEMUFLAGS+=-cpu $(QEMU_CPU)
|
||||||
|
endif
|
||||||
endif
|
endif
|
||||||
|
|
||||||
ifneq ($(PFLASH0),)
|
ifneq ($(PFLASH0),)
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user