mirror of
https://github.com/yuzu-emu/unicorn.git
synced 2024-12-25 05:15:36 +00:00
1024ceb4df
this splits the 64-bit only instructions into its own decode file such that we generate the decoder for these instructions only for the RISC-V 64 bit target. Backports commit 7e45a682edc32ba90d6955215f062210531b835b from qemu
15 lines
517 B
Makefile
15 lines
517 B
Makefile
obj-y += translate.o op_helper.o cpu_helper.o cpu.o csr.o fpu_helper.o pmp.o
|
|
obj-y += unicorn.o
|
|
|
|
DECODETREE = $(SRC_PATH)/scripts/decodetree.py
|
|
|
|
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)
|
|
$(call quiet-command, \
|
|
$(PYTHON) $(DECODETREE) -o $@ --decode decode_insn32 $(decode32-y), \
|
|
"GEN", $(TARGET_DIR)$@)
|
|
|
|
target/riscv/translate.o: target/riscv/decode_insn32.inc.c
|