class multispike(targets.Target): harts = [ spike32.spike32_hart(misa=0x4034112d, system=0), spike32.spike32_hart(misa=0x4034112d, system=0), spike64.spike64_hart(misa=0x8000000000341129, system=1), spike64.spike64_hart(misa=0x8000000000341129, system=1) ] openocd_config_path = "spike-multi.cfg" # Increased timeout because we use abstract_rti to artificially slow things # down. timeout_sec = 30 implements_custom_test = True support_hasel = False support_memory_sampling = False # Needs SBA def create(self): return testlib.MultiSpike([ testlib.Spike(self, isa="RV64IMAFDV", support_hasel=False, support_abstract_csr=False, vlen=512, elen=64, harts=self.harts[2:]), testlib.Spike( self, isa="RV32IMAFDCV", support_abstract_csr=True, support_haltgroups=False, # elen must be at least 64 because D is supported. elen=64, harts=self.harts[:2]), ])
class spike64_2(targets.Target): harts = [spike64.spike64_hart(), spike64.spike64_hart()] openocd_config_path = "spike-rtos.cfg" timeout_sec = 30 def create(self): return testlib.Spike(self)
class spike64_2(targets.Target): harts = [spike64.spike64_hart(), spike64.spike64_hart()] openocd_config_path = "spike-2.cfg" timeout_sec = 60 def create(self): return testlib.Spike(self, isa="RV64IMAFD")
class spike64_2_rtos(targets.Target): harts = [spike64.spike64_hart(), spike64.spike64_hart()] openocd_config_path = "spike-rtos.cfg" timeout_sec = 60 implements_custom_test = True def create(self): return testlib.Spike(self)
class spike64_2(targets.Target): harts = [spike64.spike64_hart(), spike64.spike64_hart()] openocd_config_path = "spike-2.cfg" timeout_sec = 60 implements_custom_test = True def create(self): return testlib.Spike(self, isa="RV64IMAFD", abstract_rti=30)
class spike64_2_rtos(targets.Target): harts = [spike64.spike64_hart(), spike64.spike64_hart()] openocd_config_path = "spike-rtos.cfg" timeout_sec = 60 implements_custom_test = True support_hasel = False def create(self): return testlib.Spike(self, abstract_rti=30, support_hasel=False, support_abstract_csr=False)
class spike64_2(targets.Target): harts = [ spike64.spike64_hart(misa=0x8000000000141129), spike64.spike64_hart(misa=0x8000000000141129) ] openocd_config_path = "spike-2-hwthread.cfg" timeout_sec = 5 implements_custom_test = True def create(self): return testlib.Spike(self)
class spike64_2(targets.Target): harts = [ spike64.spike64_hart(misa=0x8000000000141129), spike64.spike64_hart(misa=0x8000000000141129) ] openocd_config_path = "spike-2.cfg" timeout_sec = 5 implements_custom_test = True support_memory_sampling = False # Needs SBA def create(self): return testlib.Spike(self)
class spike64_2(targets.Target): harts = [spike64.spike64_hart(misa=0x8000000000141129), spike64.spike64_hart(misa=0x8000000000141129)] openocd_config_path = "spike-2.cfg" # Increased timeout because we use abstract_rti to artificially slow things # down. timeout_sec = 20 implements_custom_test = True support_hasel = False def create(self): return testlib.Spike(self, isa="RV64IMAFD", abstract_rti=30, support_hasel=False, support_abstract_csr=False)
class spike64_2_rtos(targets.Target): harts = [ spike64.spike64_hart(misa=0x8000000000141129), spike64.spike64_hart(misa=0x8000000000141129) ] openocd_config_path = "spike-rtos.cfg" timeout_sec = 60 implements_custom_test = True support_hasel = False test_semihosting = False support_manual_hwbp = False # not supported with `-rtos riscv` def create(self): return testlib.Spike(self, abstract_rti=30, support_hasel=False, support_abstract_csr=False)
class spike64_2(targets.Target): harts = [ spike64.spike64_hart(misa=0x8000000000341129), spike64.spike64_hart(misa=0x8000000000341129) ] openocd_config_path = "spike-2.cfg" # Increased timeout because we use abstract_rti to artificially slow things # down. timeout_sec = 20 implements_custom_test = True support_hasel = False def create(self): # TODO: It would be nice to test with slen=128, but spike currently # requires vlen==slen. return testlib.Spike(self, isa="RV64IMAFDV", abstract_rti=30, support_hasel=False, support_abstract_csr=False, vlen=512, elen=64, slen=512)