aboutsummaryrefslogtreecommitdiff
path: root/debug/targets/RISC-V/spike64-2-hwthread.py
blob: d1d2bf7ddda565c2b14555b379906965a12c273d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
import spike64  # pylint: disable=import-error

import targets
import testlib

class spike64_2(targets.Target):
    harts = [spike64.spike64_hart(misa=0x8000000000341129),
            spike64.spike64_hart(misa=0x8000000000341129)]
    openocd_config_path = "spike-2-hwthread.cfg"
    # 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
    support_unavailable_control = True

    def create(self):
        return testlib.Spike(self, isa="RV64IMAFDV", abstract_rti=30,
                support_hasel=False, support_abstract_csr=False,
                vlen=512, elen=64)