Use spike disassembler riscv-dis if it exists
This commit is contained in:
parent
80003b3019
commit
628745226c
6
Makefrag
6
Makefrag
@ -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
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user