diff options
author | Tim Newsome <tim@sifive.com> | 2019-02-14 14:53:57 -0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-02-14 14:53:57 -0800 |
commit | 26d821d126fd0e36bf286420452f5628c946e7cb (patch) | |
tree | 7492e579724144c01cdcf08998f3c753526c9bca /debug/targets/RISC-V/spike64-2-hwthread.py | |
parent | 353b55bc233ef314dd27b547af0a6bdee217b3f4 (diff) | |
download | riscv-tests-26d821d126fd0e36bf286420452f5628c946e7cb.zip riscv-tests-26d821d126fd0e36bf286420452f5628c946e7cb.tar.gz riscv-tests-26d821d126fd0e36bf286420452f5628c946e7cb.tar.bz2 |
Test `-rtos hwthread` (#178)
* WIP
* Use hwthread everywhere.
* Test `-rtos hwthread`.
Also tweak timeouts a bit so that we don't have ridiculous timeouts for
simple operations.
* Tweak timeouts so tests pass on a loaded system.
Diffstat (limited to 'debug/targets/RISC-V/spike64-2-hwthread.py')
-rw-r--r-- | debug/targets/RISC-V/spike64-2-hwthread.py | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/debug/targets/RISC-V/spike64-2-hwthread.py b/debug/targets/RISC-V/spike64-2-hwthread.py new file mode 100644 index 0000000..e57f490 --- /dev/null +++ b/debug/targets/RISC-V/spike64-2-hwthread.py @@ -0,0 +1,13 @@ +import targets +import testlib + +import spike64 # pylint: disable=import-error + +class spike64_2(targets.Target): + harts = [spike64.spike64_hart(), spike64.spike64_hart()] + openocd_config_path = "spike-2-hwthread.cfg" + timeout_sec = 5 + implements_custom_test = True + + def create(self): + return testlib.Spike(self) |