summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorGravatar Benjamin Barenblat <bbaren@google.com>2016-01-21 15:21:36 -0500
committerGravatar Benjamin Barenblat <bbaren@google.com>2016-01-21 15:21:36 -0500
commitb307dca0dcf4fd9be9ddc5c80ead64f12d37c393 (patch)
tree678e94edd4ef2875a4493320bb20351e02a58e64 /Makefile
parentcd97d2f441715dd31bb3fd079ab86dd957b5b4b0 (diff)
Support generating Go code
Generate Go code for the RISC-V Go port <https://github.com/riscv/riscv-go>;.
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile3
1 files changed, 3 insertions, 0 deletions
diff --git a/Makefile b/Makefile
index 0fa58a0..cce8512 100644
--- a/Makefile
+++ b/Makefile
@@ -20,6 +20,9 @@ $(GAS_H) $(XCC_H): $(ALL_OPCODES) parse-opcodes
inst.chisel: $(ALL_OPCODES) parse-opcodes
cat opcodes opcodes-custom opcodes-pseudo | ./parse-opcodes -chisel > $@
+inst.go: opcodes opcodes-pseudo parse-opcodes
+ cat opcodes opcodes-pseudo | ./parse-opcodes -go > $@
+
instr-table.tex: $(ALL_OPCODES) parse-opcodes
cat opcodes opcodes-pseudo | ./parse-opcodes -tex > $@