1
0

Use spike disassembler riscv-dis if it exists

This commit is contained in:
Andrew Waterman 2013-09-15 04:25:53 -07:00
parent 80003b3019
commit 628745226c
2 changed files with 8 additions and 2 deletions

View File

@ -585,3 +585,9 @@ bs_matmul.riscv\
bs_vvadd.riscv\
bt_matmul.riscv\
bt_vvadd.riscv\
disasm := 2>
which_disasm := $(shell which riscv-dis)
ifneq ($(which_disasm),)
disasm := 3>&1 1>&2 2>&3 | $(which_disasm) >
endif

View File

@ -74,10 +74,10 @@ output:
mkdir -p $@
output/%.run: output/%.hex emulator
./emulator +dramsim +max-cycles=30000000 +loadmem=$< none 2> /dev/null
./emulator +dramsim +max-cycles=30000000 +loadmem=$< none 2> /dev/null 2> $@
output/%.out: output/%.hex emulator
./emulator +dramsim +max-cycles=30000000 +verbose +coremap-random +loadmem=$< none 2> $@
./emulator +dramsim +max-cycles=30000000 +verbose +coremap-random +loadmem=$< none $(disasm) $@
output/%.vpd: output/%.hex emulator-debug
rm -rf $@.vcd && mkfifo $@.vcd