aboutsummaryrefslogtreecommitdiff
path: root/debug/targets/RISC-V/spike32.py
blob: 665d7e99a56c6ae73e7364a60ef11a33f80b14f5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
import targets
import testlib

class spike32_hart(targets.Hart):
    xlen = 32
    ram = 0x10000000
    ram_size = 0x10000000
    instruction_hardware_breakpoint_count = 4
    reset_vector = 0x1000
    link_script_path = "spike32.lds"

class spike32(targets.Target):
    harts = [spike32_hart()]
    openocd_config_path = "spike.cfg"
    timeout_sec = 30

    def create(self):
        return testlib.Spike(self)