-
Notifications
You must be signed in to change notification settings - Fork 477
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added test cases to check hardware-provided address translation for program buffer memory accesses
- Loading branch information
Showing
4 changed files
with
80 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
import spike32 # pylint: disable=import-error | ||
|
||
import targets | ||
import testlib | ||
|
||
class spike32_pb(targets.Target): | ||
harts = [spike32.spike32_hart(misa=0x4034112d, progbufsize=6)] | ||
openocd_config_path = "spike-1.cfg" | ||
timeout_sec = 180 | ||
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 | ||
return testlib.Spike(self, isa="RV32IMAFDCV", dmi_rti=4, | ||
support_abstract_csr=True, support_haltgroups=False, | ||
# elen must be at least 64 because D is supported. | ||
elen=64, progbufsize=self.harts[0].progbufsize) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
import spike64 # pylint: disable=import-error | ||
|
||
import targets | ||
import testlib | ||
|
||
class spike64(targets.Target): | ||
harts = [spike64.spike64_hart(progbufsize=6)] | ||
openocd_config_path = "spike-1.cfg" | ||
timeout_sec = 180 | ||
implements_custom_test = True | ||
freertos_binary = "bin/RTOSDemo64.axf" | ||
support_unavailable_control = True | ||
|
||
def create(self): | ||
# 32-bit FPRs only | ||
return testlib.Spike(self, isa="RV64IMAFC", | ||
progbufsize=self.harts[0].progbufsize, | ||
abstract_rti=30, support_abstract_csr=True, | ||
support_abstract_fpr=True) | ||
|