diff options
author | Tim Newsome <tim@sifive.com> | 2017-09-29 13:20:30 -0700 |
---|---|---|
committer | Tim Newsome <tim@sifive.com> | 2017-09-29 13:20:30 -0700 |
commit | 49fc83aa23045abee5d396ef5a9d96b80c03178d (patch) | |
tree | ed08e848af4aa837d690860b7e87fe3000b69891 /debug/targets/RISC-V/spike64.py | |
parent | b9957ef9690dc83c684e113294b068fe676b468a (diff) | |
download | riscv-tests-49fc83aa23045abee5d396ef5a9d96b80c03178d.zip riscv-tests-49fc83aa23045abee5d396ef5a9d96b80c03178d.tar.gz riscv-tests-49fc83aa23045abee5d396ef5a9d96b80c03178d.tar.bz2 |
Fix tests to work in multi-gdb mode.
The Gdb class now can handle connecting to more than one gdb. It
enumerates the harts across all connections, and when asked to select a
hart, it transparently sends future gdb commands to the correct
instance.
Multicore tests still have to be aware of some differences. The main one
is that when executing 'c' in RTOS mode, all harts resume, while in
multi-gdb mode only the current one resumes. Additionally, gdb doesn't
set breakpoints until 'c' is issued, so the hart where breakpoints are
set needs to be resumed before other harts might see them.
Diffstat (limited to 'debug/targets/RISC-V/spike64.py')
-rw-r--r-- | debug/targets/RISC-V/spike64.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/debug/targets/RISC-V/spike64.py b/debug/targets/RISC-V/spike64.py index 9c37f87..2cd67a5 100644 --- a/debug/targets/RISC-V/spike64.py +++ b/debug/targets/RISC-V/spike64.py @@ -11,7 +11,7 @@ class spike64_hart(targets.Hart): class spike64(targets.Target): harts = [spike64_hart()] - openocd_config_path = "spike.cfg" + openocd_config_path = "spike-1.cfg" timeout_sec = 30 def create(self): |