diff options
author | Tim Newsome <tim@sifive.com> | 2021-10-05 10:04:27 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-10-05 10:04:27 -0700 |
commit | e65ecdf941a5484af27f9be223fb655ebcb0398b (patch) | |
tree | 6ea6f8e87b453f7d336ba307e2d797a4e63c4b06 /debug/targets | |
parent | e30978a71921159aec38eeefd848fca4ed39a826 (diff) | |
download | riscv-tests-e65ecdf941a5484af27f9be223fb655ebcb0398b.zip riscv-tests-e65ecdf941a5484af27f9be223fb655ebcb0398b.tar.gz riscv-tests-e65ecdf941a5484af27f9be223fb655ebcb0398b.tar.bz2 |
Remove slen. (#360)
It's not an argument to spike anymore.
Also switch testing the vector unit from multi-gdb to `-rtos hwthread`.
This exposes a bug in OpenOCD (which is already fixed).
Diffstat (limited to 'debug/targets')
-rw-r--r-- | debug/targets/RISC-V/spike-multi.py | 4 | ||||
-rw-r--r-- | debug/targets/RISC-V/spike64-2-hwthread.py | 13 | ||||
-rw-r--r-- | debug/targets/RISC-V/spike64-2.py | 15 |
3 files changed, 14 insertions, 18 deletions
diff --git a/debug/targets/RISC-V/spike-multi.py b/debug/targets/RISC-V/spike-multi.py index 816677b..82de76f 100644 --- a/debug/targets/RISC-V/spike-multi.py +++ b/debug/targets/RISC-V/spike-multi.py @@ -19,13 +19,11 @@ class multispike(targets.Target): support_memory_sampling = False # Needs SBA def create(self): - # TODO: It would be nice to test with slen=128, but spike currently - # requires vlen==slen. return testlib.MultiSpike( [ testlib.Spike(self, isa="RV64IMAFDV", support_hasel=False, support_abstract_csr=False, - vlen=512, elen=64, slen=512, harts=self.harts[2:]), + vlen=512, elen=64, harts=self.harts[2:]), testlib.Spike(self, isa="RV32IMAFDCV", support_abstract_csr=True, support_haltgroups=False, # elen must be at least 64 because D is supported. diff --git a/debug/targets/RISC-V/spike64-2-hwthread.py b/debug/targets/RISC-V/spike64-2-hwthread.py index ee1a46b..db381d4 100644 --- a/debug/targets/RISC-V/spike64-2-hwthread.py +++ b/debug/targets/RISC-V/spike64-2-hwthread.py @@ -4,12 +4,17 @@ import testlib import spike64 # pylint: disable=import-error class spike64_2(targets.Target): - harts = [spike64.spike64_hart(misa=0x8000000000141129), - spike64.spike64_hart(misa=0x8000000000141129)] + harts = [spike64.spike64_hart(misa=0x8000000000341129), + spike64.spike64_hart(misa=0x8000000000341129)] openocd_config_path = "spike-2-hwthread.cfg" - timeout_sec = 5 + # Increased timeout because we use abstract_rti to artificially slow things + # down. + timeout_sec = 20 implements_custom_test = True + support_hasel = False support_memory_sampling = False # Needs SBA def create(self): - return testlib.Spike(self) + return testlib.Spike(self, isa="RV64IMAFDV", abstract_rti=30, + support_hasel=False, support_abstract_csr=False, + vlen=512, elen=64) diff --git a/debug/targets/RISC-V/spike64-2.py b/debug/targets/RISC-V/spike64-2.py index ceb2227..e710fe1 100644 --- a/debug/targets/RISC-V/spike64-2.py +++ b/debug/targets/RISC-V/spike64-2.py @@ -4,19 +4,12 @@ import testlib import spike64 # pylint: disable=import-error class spike64_2(targets.Target): - harts = [spike64.spike64_hart(misa=0x8000000000341129), - spike64.spike64_hart(misa=0x8000000000341129)] + harts = [spike64.spike64_hart(misa=0x8000000000141129), + spike64.spike64_hart(misa=0x8000000000141129)] openocd_config_path = "spike-2.cfg" - # Increased timeout because we use abstract_rti to artificially slow things - # down. - timeout_sec = 20 + timeout_sec = 5 implements_custom_test = True - support_hasel = False support_memory_sampling = False # Needs SBA def create(self): - # TODO: It would be nice to test with slen=128, but spike currently - # requires vlen==slen. - return testlib.Spike(self, isa="RV64IMAFDV", abstract_rti=30, - support_hasel=False, support_abstract_csr=False, - vlen=512, elen=64, slen=512) + return testlib.Spike(self) |