2019-01-04 23:23:55 +00:00
|
|
|
obj-y += translate.o op_helper.o cpu_helper.o cpu.o csr.o fpu_helper.o gdbstub.o pmp.o
|
2019-02-13 15:53:41 +00:00
|
|
|
|
|
|
|
DECODETREE = $(SRC_PATH)/scripts/decodetree.py
|
|
|
|
|
2019-02-13 15:53:44 +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-02-13 15:53:41 +00:00
|
|
|
$(call quiet-command, \
|
2019-02-13 15:53:44 +00:00
|
|
|
$(PYTHON) $(DECODETREE) -o $@ --decode decode_insn32 $(decode32-y), \
|
2019-02-13 15:53:41 +00:00
|
|
|
"GEN", $(TARGET_DIR)$@)
|
|
|
|
|
2019-02-13 15:53:56 +00:00
|
|
|
target/riscv/decode_insn16.inc.c: \
|
|
|
|
$(SRC_PATH)/target/riscv/insn16.decode $(DECODETREE)
|
|
|
|
$(call quiet-command, \
|
|
|
|
$(PYTHON) $(DECODETREE) -o $@ --decode decode_insn16 --insnwidth 16 $<, \
|
|
|
|
"GEN", $(TARGET_DIR)$@)
|
|
|
|
|
|
|
|
target/riscv/translate.o: target/riscv/decode_insn32.inc.c \
|
|
|
|
target/riscv/decode_insn16.inc.c
|