aboutsummaryrefslogtreecommitdiff
path: root/target/openrisc/Makefile.objs
diff options
context:
space:
mode:
authorRichard Henderson <richard.henderson@linaro.org>2018-02-19 12:28:12 -0800
committerRichard Henderson <richard.henderson@linaro.org>2018-05-14 14:44:26 -0700
commit7de9729f08043399325e37b26637493313b4543d (patch)
tree9cd7b7298048cc8a58b1339da25a0f8f536ca4de /target/openrisc/Makefile.objs
parent4e2d30079c0e771d2c6a607001a4165f2cb51d82 (diff)
target/openrisc: Start conversion to decodetree.py
Begin with the 0x08 major opcode, the system instructions. Acked-by: Stafford Horne <shorne@gmail.com> Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
Diffstat (limited to 'target/openrisc/Makefile.objs')
-rw-r--r--target/openrisc/Makefile.objs9
1 files changed, 9 insertions, 0 deletions
diff --git a/target/openrisc/Makefile.objs b/target/openrisc/Makefile.objs
index 918b1c6e9c..1b98a911ea 100644
--- a/target/openrisc/Makefile.objs
+++ b/target/openrisc/Makefile.objs
@@ -3,3 +3,12 @@ obj-y += cpu.o exception.o interrupt.o mmu.o translate.o
obj-y += exception_helper.o fpu_helper.o \
interrupt_helper.o mmu_helper.o sys_helper.o
obj-y += gdbstub.o
+
+DECODETREE = $(SRC_PATH)/scripts/decodetree.py
+
+target/openrisc/decode.inc.c: \
+ $(SRC_PATH)/target/openrisc/insns.decode $(DECODETREE)
+ $(call quiet-command,\
+ $(PYTHON) $(DECODETREE) -o $@ $<, "GEN", $(TARGET_DIR)$@)
+
+target/openrisc/translate.o: target/openrisc/decode.inc.c