X-Git-Url: https://git.libre-soc.org/?a=blobdiff_plain;f=debug%2Ftargets%2FRISC-V%2Fspike64.py;h=d5802b5714c9e7443ec3e09151e981a95b917bc3;hb=fc3d7e8196dfb567a9b6c34dd97c1b43260b4cd5;hp=c70585782622610b4513cbaedbff5fb1fc49af1d;hpb=a0d927de2db60e20cd05ea245aa01f85aa99db94;p=riscv-tests.git diff --git a/debug/targets/RISC-V/spike64.py b/debug/targets/RISC-V/spike64.py index c705857..d5802b5 100644 --- a/debug/targets/RISC-V/spike64.py +++ b/debug/targets/RISC-V/spike64.py @@ -1,12 +1,19 @@ 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 + reset_vectors = [0x1000] + link_script_path = "spike64.lds" + +class spike64(targets.Target): + harts = [spike64_hart()] + openocd_config_path = "spike-1.cfg" + timeout_sec = 30 def create(self): - return testlib.Spike(self) + # 32-bit FPRs only + return testlib.Spike(self, isa="RV64IMAFC", progbufsize=0)