Skip to content

Commit

Permalink
debug: Add support_unavailable_control property.
Browse files Browse the repository at this point in the history
  • Loading branch information
timsifive committed Jul 17, 2023
1 parent 65e27a9 commit a29522f
Show file tree
Hide file tree
Showing 8 changed files with 10 additions and 0 deletions.
3 changes: 3 additions & 0 deletions debug/targets.py
Original file line number Diff line number Diff line change
Expand Up @@ -129,6 +129,9 @@ class Target:
# in https://github.com/FreeRTOS/FreeRTOS.
freertos_binary = None

# Supports controlling hart availability through DMCUSTOM.
support_unavailable_control = False

# Internal variables:
directory = None
temporary_files = []
Expand Down
1 change: 1 addition & 0 deletions debug/targets/RISC-V/spike32-2-hwthread.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ class spike32_2(targets.Target):
timeout_sec = 5
implements_custom_test = True
support_memory_sampling = False # not supported without sba
support_unavailable_control = True

def create(self):
return testlib.Spike(self, isa="RV32IMAFDV", support_hasel=True,
Expand Down
1 change: 1 addition & 0 deletions debug/targets/RISC-V/spike32-2.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ class spike32_2(targets.Target):
openocd_config_path = "spike-2.cfg"
timeout_sec = 30
implements_custom_test = True
support_unavailable_control = True

def create(self):
return testlib.Spike(self, isa="RV32IMAFC", progbufsize=0, dmi_rti=4,
Expand Down
1 change: 1 addition & 0 deletions debug/targets/RISC-V/spike32.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ class spike32(targets.Target):
implements_custom_test = True
support_memory_sampling = False # Needs SBA
freertos_binary = "bin/RTOSDemo32.axf"
support_unavailable_control = True

def create(self):
# 64-bit FPRs on 32-bit target
Expand Down
1 change: 1 addition & 0 deletions debug/targets/RISC-V/spike64-2-hwthread.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ class spike64_2(targets.Target):
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,
Expand Down
1 change: 1 addition & 0 deletions debug/targets/RISC-V/spike64-2-rtos.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ class spike64_2_rtos(targets.Target):
test_semihosting = False
support_manual_hwbp = False # not supported with `-rtos riscv`
support_memory_sampling = False # not supported with `-rtos riscv`
support_unavailable_control = True

def create(self):
return testlib.Spike(self, abstract_rti=30, support_hasel=False,
Expand Down
1 change: 1 addition & 0 deletions debug/targets/RISC-V/spike64-2.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ class spike64_2(targets.Target):
timeout_sec = 5
implements_custom_test = True
support_memory_sampling = False # Needs SBA
support_unavailable_control = True

def create(self):
return testlib.Spike(self)
1 change: 1 addition & 0 deletions debug/targets/RISC-V/spike64.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ class spike64(targets.Target):
timeout_sec = 30
implements_custom_test = True
freertos_binary = "bin/RTOSDemo64.axf"
support_unavailable_control = True

def create(self):
# 32-bit FPRs only
Expand Down

0 comments on commit a29522f

Please sign in to comment.