projects
/
riscv-tests.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Run debug tests from main Makefile.
[riscv-tests.git]
/
debug
/
Makefile
diff --git
a/debug/Makefile
b/debug/Makefile
index 62d787505b1d52de76f2f7d5871e2f611d753d68..1d90e122895cef3c194ace4aa2e912e9e3e67ac6 100644
(file)
--- a/
debug/Makefile
+++ b/
debug/Makefile
@@
-1,12
+1,18
@@
RISCV_SIM ?= spike
RISCV_SIM ?= spike
+XLEN ?= 64
+
+src_dir ?= .
+GDBSERVER_PY = $(src_dir)/gdbserver.py
+
+default: spike$(XLEN).log
all: spike32.log spike64.log
spike32.log:
all: spike32.log spike64.log
spike32.log:
-
./gdbserver.py
--isolate --spike32 --cmd $(RISCV_SIM) -- -v > $@ 2>&1
+
$(GDBSERVER_PY)
--isolate --spike32 --cmd $(RISCV_SIM) -- -v > $@ 2>&1
spike64.log:
spike64.log:
-
./gdbserver.py
--isolate --spike --cmd $(RISCV_SIM) -- -v > $@ 2>&1
+
$(GDBSERVER_PY)
--isolate --spike --cmd $(RISCV_SIM) -- -v > $@ 2>&1
clean:
rm -f *.log
clean:
rm -f *.log