diff options
author | Tim Newsome <tim@sifive.com> | 2016-07-19 11:07:03 -0700 |
---|---|---|
committer | Tim Newsome <tim@sifive.com> | 2016-07-19 11:24:25 -0700 |
commit | edfe598fd06366170628e88aa6dee762d2c37bbc (patch) | |
tree | 361a63af04da0d4fc42fbe28f79c2d280c54f396 /debug | |
parent | b3cb7cb55c3461c6891caa023220553cf903fcf6 (diff) | |
download | riscv-tests-edfe598fd06366170628e88aa6dee762d2c37bbc.zip riscv-tests-edfe598fd06366170628e88aa6dee762d2c37bbc.tar.gz riscv-tests-edfe598fd06366170628e88aa6dee762d2c37bbc.tar.bz2 |
Run debug tests from main Makefile.
Diffstat (limited to 'debug')
-rw-r--r-- | debug/Makefile | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/debug/Makefile b/debug/Makefile index 62d7875..1d90e12 100644 --- a/debug/Makefile +++ b/debug/Makefile @@ -1,12 +1,18 @@ RISCV_SIM ?= spike +XLEN ?= 64 + +src_dir ?= . +GDBSERVER_PY = $(src_dir)/gdbserver.py + +default: spike$(XLEN).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: - ./gdbserver.py --isolate --spike --cmd $(RISCV_SIM) -- -v > $@ 2>&1 + $(GDBSERVER_PY) --isolate --spike --cmd $(RISCV_SIM) -- -v > $@ 2>&1 clean: rm -f *.log |