aboutsummaryrefslogtreecommitdiff
path: root/debug/targets/RISC-V/spike64.py
diff options
context:
space:
mode:
Diffstat (limited to 'debug/targets/RISC-V/spike64.py')
-rw-r--r--debug/targets/RISC-V/spike64.py8
1 files changed, 7 insertions, 1 deletions
diff --git a/debug/targets/RISC-V/spike64.py b/debug/targets/RISC-V/spike64.py
index c705857..6e3da89 100644
--- a/debug/targets/RISC-V/spike64.py
+++ b/debug/targets/RISC-V/spike64.py
@@ -1,12 +1,18 @@
import targets
import testlib
-class spike64(targets.Target):
+class spike64_hart(targets.Hart):
xlen = 64
ram = 0x1212340000
ram_size = 0x10000000
instruction_hardware_breakpoint_count = 4
reset_vector = 0x1000
+ link_script_path = "spike64.lds"
+
+class spike64(targets.Target):
+ harts = [spike64_hart()]
+ openocd_config_path = "spike.cfg"
+ timeout_sec = 30
def create(self):
return testlib.Spike(self)