提交 f10a32c9 编写于 作者: Z Zihao Yu

Makefile: use QEMU as REF automatically for non-x86 ISA

上级 6c13523a
......@@ -26,15 +26,19 @@ SO_CFLAGS = -fPIC -D_SHARE=1
SO_LDLAGS = -shared -fPIC
endif
DIFF ?= qemu
DIFF ?= kvm
ifneq ($(ISA),x86)
ifneq ($(DIFF),qemu)
DIFF = qemu
$(info KVM is only supported with ISA=x86, use QEMU instead)
endif
endif
ifeq ($(DIFF),qemu)
DIFF_REF_PATH = $(NEMU_HOME)/tools/qemu-diff
DIFF_REF_SO = $(DIFF_REF_PATH)/build/$(ISA)-qemu-so
CFLAGS += -D__DIFF_REF_QEMU__
else ifeq ($(DIFF),kvm)
ifneq ($(ISA),x86)
$(error KVM is only supported with ISA=x86)
endif
DIFF_REF_PATH = $(NEMU_HOME)/tools/kvm-diff
DIFF_REF_SO = $(DIFF_REF_PATH)/build/$(ISA)-kvm-so
CFLAGS += -D__DIFF_REF_KVM__
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册