Skip to content

Commit a29522f

Browse files
committed
debug: Add support_unavailable_control property.
1 parent 65e27a9 commit a29522f

File tree

8 files changed

+10
-0
lines changed

8 files changed

+10
-0
lines changed

debug/targets.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -129,6 +129,9 @@ class Target:
129129
# in https://github.com/FreeRTOS/FreeRTOS.
130130
freertos_binary = None
131131

132+
# Supports controlling hart availability through DMCUSTOM.
133+
support_unavailable_control = False
134+
132135
# Internal variables:
133136
directory = None
134137
temporary_files = []

debug/targets/RISC-V/spike32-2-hwthread.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ class spike32_2(targets.Target):
1010
timeout_sec = 5
1111
implements_custom_test = True
1212
support_memory_sampling = False # not supported without sba
13+
support_unavailable_control = True
1314

1415
def create(self):
1516
return testlib.Spike(self, isa="RV32IMAFDV", support_hasel=True,

debug/targets/RISC-V/spike32-2.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ class spike32_2(targets.Target):
99
openocd_config_path = "spike-2.cfg"
1010
timeout_sec = 30
1111
implements_custom_test = True
12+
support_unavailable_control = True
1213

1314
def create(self):
1415
return testlib.Spike(self, isa="RV32IMAFC", progbufsize=0, dmi_rti=4,

debug/targets/RISC-V/spike32.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ class spike32(targets.Target):
1717
implements_custom_test = True
1818
support_memory_sampling = False # Needs SBA
1919
freertos_binary = "bin/RTOSDemo32.axf"
20+
support_unavailable_control = True
2021

2122
def create(self):
2223
# 64-bit FPRs on 32-bit target

debug/targets/RISC-V/spike64-2-hwthread.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ class spike64_2(targets.Target):
1313
implements_custom_test = True
1414
support_hasel = False
1515
support_memory_sampling = False # Needs SBA
16+
support_unavailable_control = True
1617

1718
def create(self):
1819
return testlib.Spike(self, isa="RV64IMAFDV", abstract_rti=30,

debug/targets/RISC-V/spike64-2-rtos.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ class spike64_2_rtos(targets.Target):
1313
test_semihosting = False
1414
support_manual_hwbp = False # not supported with `-rtos riscv`
1515
support_memory_sampling = False # not supported with `-rtos riscv`
16+
support_unavailable_control = True
1617

1718
def create(self):
1819
return testlib.Spike(self, abstract_rti=30, support_hasel=False,

debug/targets/RISC-V/spike64-2.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ class spike64_2(targets.Target):
1010
timeout_sec = 5
1111
implements_custom_test = True
1212
support_memory_sampling = False # Needs SBA
13+
support_unavailable_control = True
1314

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

debug/targets/RISC-V/spike64.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ class spike64(targets.Target):
1717
timeout_sec = 30
1818
implements_custom_test = True
1919
freertos_binary = "bin/RTOSDemo64.axf"
20+
support_unavailable_control = True
2021

2122
def create(self):
2223
# 32-bit FPRs only

0 commit comments

Comments
 (0)