1 obj-y += translate.o op_helper.o cpu_helper.o cpu.o csr.o fpu_helper.o gdbstub.o pmp.o
3 DECODETREE = $(SRC_PATH)/scripts/decodetree.py
5 decode32-y = $(SRC_PATH)/target/riscv/insn32.decode
6 decode32-$(TARGET_RISCV64) += $(SRC_PATH)/target/riscv/insn32-64.decode
8 decode16-y = $(SRC_PATH)/target/riscv/insn16.decode
9 decode16-$(TARGET_RISCV32) += $(SRC_PATH)/target/riscv/insn16-32.decode
10 decode16-$(TARGET_RISCV64) += $(SRC_PATH)/target/riscv/insn16-64.decode
12 target/riscv/decode_insn32.inc.c: $(decode32-y) $(DECODETREE)
13 $(call quiet-command, \
14 $(PYTHON) $(DECODETREE) -o $@ --static-decode decode_insn32 \
15 $(decode32-y), "GEN", $(TARGET_DIR)$@)
17 target/riscv/decode_insn16.inc.c: $(decode16-y) $(DECODETREE)
18 $(call quiet-command, \
19 $(PYTHON) $(DECODETREE) -o $@ --static-decode decode_insn16 \
20 --insnwidth 16 $(decode16-y), "GEN", $(TARGET_DIR)$@)
22 target/riscv/translate.o: target/riscv/decode_insn32.inc.c \
23 target/riscv/decode_insn16.inc.c