2019-07-23 14:08:15 +02:00
|
|
|
obj-y += translate.o op_helper.o cpu_helper.o cpu.o csr.o fpu_helper.o gdbstub.o
|
|
|
|
obj-$(CONFIG_SOFTMMU) += pmp.o
|
2019-02-13 16:53:41 +01:00
|
|
|
|
2019-08-14 17:33:32 +02:00
|
|
|
ifeq ($(CONFIG_SOFTMMU),y)
|
|
|
|
obj-y += monitor.o
|
|
|
|
endif
|
|
|
|
|
2019-02-13 16:53:41 +01:00
|
|
|
DECODETREE = $(SRC_PATH)/scripts/decodetree.py
|
|
|
|
|
2019-02-13 16:53:44 +01:00
|
|
|
decode32-y = $(SRC_PATH)/target/riscv/insn32.decode
|
|
|
|
decode32-$(TARGET_RISCV64) += $(SRC_PATH)/target/riscv/insn32-64.decode
|
|
|
|
|
2019-04-01 05:11:53 +02:00
|
|
|
decode16-y = $(SRC_PATH)/target/riscv/insn16.decode
|
|
|
|
decode16-$(TARGET_RISCV32) += $(SRC_PATH)/target/riscv/insn16-32.decode
|
|
|
|
decode16-$(TARGET_RISCV64) += $(SRC_PATH)/target/riscv/insn16-64.decode
|
|
|
|
|
2019-02-13 16:53:44 +01:00
|
|
|
target/riscv/decode_insn32.inc.c: $(decode32-y) $(DECODETREE)
|
2019-02-13 16:53:41 +01:00
|
|
|
$(call quiet-command, \
|
2019-04-01 05:11:49 +02:00
|
|
|
$(PYTHON) $(DECODETREE) -o $@ --static-decode decode_insn32 \
|
|
|
|
$(decode32-y), "GEN", $(TARGET_DIR)$@)
|
2019-02-13 16:53:41 +01:00
|
|
|
|
2019-04-01 05:11:53 +02:00
|
|
|
target/riscv/decode_insn16.inc.c: $(decode16-y) $(DECODETREE)
|
2019-02-13 16:53:56 +01:00
|
|
|
$(call quiet-command, \
|
2019-04-01 05:11:49 +02:00
|
|
|
$(PYTHON) $(DECODETREE) -o $@ --static-decode decode_insn16 \
|
2019-04-01 05:11:53 +02:00
|
|
|
--insnwidth 16 $(decode16-y), "GEN", $(TARGET_DIR)$@)
|
2019-02-13 16:53:56 +01:00
|
|
|
|
|
|
|
target/riscv/translate.o: target/riscv/decode_insn32.inc.c \
|
|
|
|
target/riscv/decode_insn16.inc.c
|