Increase remotetimeout for spike targets.
[riscv-tests.git] / debug / targets / RISC-V / spike32.py
index 3bf8b4783c4578bb5f671b9036c5a08de37c7ab4..fc7d598c9ff4fc3c88883a84eb01b8a7e9bffd35 100644 (file)
@@ -1,12 +1,18 @@
 import targets
 import testlib
 
-class spike32(targets.Target):
+class spike32_hart(targets.Hart):
     xlen = 32
     ram = 0x10000000
     ram_size = 0x10000000
     instruction_hardware_breakpoint_count = 4
     reset_vector = 0x1000
+    link_script_path = "spike64.lds"
+
+class spike32(targets.Target):
+    harts = [spike32_hart()]
+    openocd_config_path = "spike.cfg"
+    timeout_sec = 30
 
     def create(self):
         return testlib.Spike(self)