2019-03-08 18:06:28 +00:00
|
|
|
obj-y += translate.o op_helper.o cpu_helper.o cpu.o csr.o fpu_helper.o pmp.o
|
|
|
|
obj-y += unicorn.o
|
2019-03-18 19:41:19 +00:00
|
|
|
|
|
|
|
DECODETREE = $(SRC_PATH)/scripts/decodetree.py
|
|
|
|
|
2019-03-18 20:02:12 +00:00
|
|
|
decode32-y = $(SRC_PATH)/target/riscv/insn32.decode
|
|
|
|
decode32-$(TARGET_RISCV64) += $(SRC_PATH)/target/riscv/insn32-64.decode
|
|
|
|
|
|
|
|
target/riscv/decode_insn32.inc.c: $(decode32-y) $(DECODETREE)
|
2019-03-18 19:41:19 +00:00
|
|
|
$(call quiet-command, \
|
2019-05-28 22:40:46 +00:00
|
|
|
$(PYTHON) $(DECODETREE) -o $@ --static-decode decode_insn32 \
|
|
|
|
$(decode32-y), "GEN", $(TARGET_DIR)$@)
|
2019-03-18 19:41:19 +00:00
|
|
|
|
2019-03-19 08:45:40 +00:00
|
|
|
target/riscv/decode_insn16.inc.c: \
|
|
|
|
$(SRC_PATH)/target/riscv/insn16.decode $(DECODETREE)
|
|
|
|
$(call quiet-command, \
|
2019-05-28 22:40:46 +00:00
|
|
|
$(PYTHON) $(DECODETREE) -o $@ --static-decode decode_insn16 \
|
|
|
|
--insnwidth 16 $<, "GEN", $(TARGET_DIR)$@)
|
2019-03-19 08:45:40 +00:00
|
|
|
|
|
|
|
target/riscv/translate.o: target/riscv/decode_insn32.inc.c \
|
|
|
|
target/riscv/decode_insn16.inc.c
|