mirror of
https://github.com/yuzu-emu/unicorn.git
synced 2025-01-12 14:15:29 +00:00
5e5b3e9ea9
for now only LUI & AUIPC are decoded and translated. If decodetree fails, we fall back to the old decoder. Backports commit 2a53cff418335ccb4719e9a94fde55f6ebcc895d from qemu
13 lines
410 B
Makefile
13 lines
410 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
|
|
|
|
target/riscv/decode_insn32.inc.c: \
|
|
$(SRC_PATH)/target/riscv/insn32.decode $(DECODETREE)
|
|
$(call quiet-command, \
|
|
$(PYTHON) $(DECODETREE) -o $@ --decode decode_insn32 $<, \
|
|
"GEN", $(TARGET_DIR)$@)
|
|
|
|
target/riscv/translate.o: target/riscv/decode_insn32.inc.c
|