Skip to content

Commit

Permalink
makefile: specify qemu accel tcg if no kvm aviliable
Browse files Browse the repository at this point in the history
Signed-off-by: rayylee <[email protected]>
  • Loading branch information
hbuxiaofei committed Jan 30, 2024
1 parent 9f51c1d commit c285f4b
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions scripts/make/qemu.mk
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,8 @@ qemu_args-debug := $(qemu_args-y) -s -S
# Do not use KVM for debugging
ifeq ($(shell uname), Darwin)
qemu_args-$(ACCEL) += -cpu host -accel hvf
else ifeq ($(wildcard /dev/kvm),)
qemu_args-$(ACCEL) += -accel tcg
else
qemu_args-$(ACCEL) += -cpu host -accel kvm
endif
Expand Down

0 comments on commit c285f4b

Please sign in to comment.