From 2d11bac94537e08b30b8ace0eb39ecbbbc386c8e Mon Sep 17 00:00:00 2001 From: Andrew Waterman Date: Mon, 25 Nov 2013 01:43:47 -0800 Subject: New privileged ISA --- Makefile | 35 ++++++++++++++--------------------- 1 file changed, 14 insertions(+), 21 deletions(-) (limited to 'Makefile') diff --git a/Makefile b/Makefile index c2b134f..20d430f 100644 --- a/Makefile +++ b/Makefile @@ -1,31 +1,24 @@ -ISASIM_H := ../riscv-isa-sim/riscv/opcodes.h -PK_H := ../riscv-pk/pk/riscv-opc.h +ISASIM_H := ../riscv-isa-sim/riscv/encoding.h +PK_H := ../riscv-pk/pk/encoding.h +ENV_H := ../riscv-tests/env/encoding.h GAS_H := ../riscv-gcc/binutils-2.21.1/include/opcode/riscv-opc.h XCC_H := ../riscv-gcc/gcc-4.6.1/gcc/config/riscv/riscv-opc.h -install: $(ISASIM_H) $(PK_H) $(GAS_H) $(XCC_H) inst.chisel instr-table.tex +ALL_OPCODES := opcodes opcodes-pseudo opcodes-rvc opcodes-hwacha opcodes-hwacha-pseudo opcodes-custom -$(ISASIM_H): opcodes parse-opcodes - ./parse-opcodes -isasim < $< > $@ +install: $(ISASIM_H) $(PK_H) $(ENV_H) $(GAS_H) $(XCC_H) inst.chisel instr-table.tex -$(PK_H): opcodes parse-opcodes - ./parse-opcodes -disasm < $< > $@ +$(ISASIM_H) $(PK_H) $(ENV_H): $(ALL_OPCODES) parse-opcodes + cp encoding.h $@ + cat opcodes | ./parse-opcodes -c >> $@ -$(GAS_H): opcodes opcodes-hwacha opcodes-rvc opcodes-custom parse-opcodes - ./parse-opcodes -disasm < $< > $@ - ./parse-opcodes -disasm < opcodes-rvc >> $@ - ./parse-opcodes -disasm < opcodes-custom >> $@ - ./parse-opcodes -disasm < opcodes-hwacha >> $@ - ./parse-opcodes -disasm < opcodes-hwacha-pseudo >> $@ +$(GAS_H) $(XCC_H): $(ALL_OPCODES) parse-opcodes + cat $(ALL_OPCODES) | ./parse-opcodes -c > $@ -$(XCC_H): opcodes parse-opcodes - ./parse-opcodes -disasm < $< > $@ +inst.chisel: $(ALL_OPCODES) parse-opcodes + cat opcodes opcodes-custom | ./parse-opcodes -chisel > $@ -inst.chisel: opcodes parse-opcodes - ./parse-opcodes -chisel < $< > $@ - ./parse-opcodes -chisel < opcodes-custom >> $@ - -instr-table.tex: opcodes parse-opcodes - ./parse-opcodes -tex < $< > $@ +instr-table.tex: $(ALL_OPCODES) parse-opcodes + cat opcodes opcodes-pseudo | ./parse-opcodes -tex > $@ .PHONY : install -- cgit v1.2.3