Skip to content

Commit

Permalink
Merge pull request #487 from riscv-software-src/debug_path
Browse files Browse the repository at this point in the history
debug: Don't rely on RISCV env
  • Loading branch information
timsifive authored Jul 7, 2023
2 parents 1f7a4b4 + 77d04b0 commit fb7a4a7
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 8 deletions.
3 changes: 0 additions & 3 deletions debug/Makefile
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
RISCV_SIM ?= spike
XLEN ?= 64

src_dir ?= .
Expand All @@ -22,8 +21,6 @@ run.%:
$(word 3, $(subst ., ,$@)) \
--isolate \
--print-failures \
--sim_cmd $(RISCV)/bin/$(RISCV_SIM) \
--server_cmd $(RISCV)/bin/openocd \
$(if $(EXCLUDE_TESTS),--exclude-tests $(EXCLUDE_TESTS))

# Target to check all the multicore options.
Expand Down
9 changes: 4 additions & 5 deletions debug/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,11 +9,10 @@ confident that the actual debug interface is functioning correctly.
Requirements
============
The following should be in the user's path:
* riscv64-unknown-elf-gcc (`rvv-0.9.x` branch for riscv-gnu-toolchain should
work if master does not have vector support yet)
* riscv64-unknown-elf-gdb (can be overridden with `--gdb` when running
gdbserver.py manually), which should be the latest from
git://sourceware.org/git/binutils-gdb.git.
* riscv64-unknown-elf-gcc (GCC 12 and later should work). If your binary has a
different name, you can set the RISCV_TESTS_DEBUG_GCC environment variable.
* riscv64-unknown-elf-gdb. If your binary has a
different name, you can set the RISCV_TESTS_DEBUG_GDB environment variable.
* spike (can be overridden with `--sim_cmd` when running gdbserver.py
manually), which should be the latest from
https://github.com/riscv/riscv-isa-sim.git.
Expand Down

0 comments on commit fb7a4a7

Please sign in to comment.