forked from riscv/sail-riscv
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Signed-off-by: Abdul Wadood <abdulwadood.afzal88@gmail.com>
- Loading branch information
1 parent
38e7345
commit 1dc8682
Showing
19 changed files
with
112 additions
and
178 deletions.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -7,3 +7,4 @@ _sbuild/ | |
*.o | ||
*.a | ||
/z3_problems | ||
__pycache__/ |
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 was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
File renamed without changes.
File renamed without changes.
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,14 @@ | ||
[RISCOF] | ||
ReferencePlugin=sail_csim | ||
ReferencePluginPath=sail_csim | ||
DUTPlugin=spike | ||
DUTPluginPath=spike | ||
|
||
[spike] | ||
pluginpath=spike | ||
ispec=spike/spike_isa32e.yaml | ||
pspec=spike/spike_platform.yaml | ||
target_run=1 | ||
|
||
[sail_csim] | ||
pluginpath=sail_csim |
2 changes: 1 addition & 1 deletion
2
ci-tests/riscof/run-tests.sh → test/act_cross_check/riscof/run-tests.sh
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 |
---|---|---|
@@ -1,4 +1,4 @@ | ||
# !bin/bash | ||
#!/bin/bash | ||
|
||
set -e | ||
|
||
|
File renamed without changes.
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,55 @@ | ||
#ifndef _COMPLIANCE_MODEL_H | ||
#define _COMPLIANCE_MODEL_H | ||
|
||
// clang-format off | ||
#define RVMODEL_DATA_SECTION .pushsection \ | ||
.tohost, "aw", @progbits; \ | ||
.align 8; \ | ||
.global tohost; \ | ||
tohost: \ | ||
.dword 0; \ | ||
.align 8; \ | ||
.global fromhost; \ | ||
fromhost: \ | ||
.dword 0; \ | ||
.popsection; \ | ||
.align 8; \ | ||
.global begin_regstate; \ | ||
begin_regstate: \ | ||
.word 128; \ | ||
.align 8; \ | ||
.global end_regstate; \ | ||
end_regstate: \ | ||
.word 4; | ||
|
||
// clang-format on | ||
#define RVMODEL_HALT \ | ||
li x1, 1; \ | ||
write_tohost: \ | ||
sw x1, tohost, x3; \ | ||
j write_tohost; | ||
|
||
#define RVMODEL_BOOT | ||
|
||
#define RVMODEL_DATA_BEGIN \ | ||
RVMODEL_DATA_SECTION.align 4; \ | ||
.global begin_signature; \ | ||
begin_signature: | ||
|
||
#define RVMODEL_DATA_END \ | ||
.align 4; \ | ||
.global end_signature; \ | ||
end_signature: | ||
|
||
#define RVMODEL_IO_INIT | ||
#define RVMODEL_IO_WRITE_STR(_R, _STR) | ||
#define RVMODEL_IO_CHECK() | ||
#define RVMODEL_IO_ASSERT_GPR_EQ(_S, _R, _I) | ||
#define RVMODEL_IO_ASSERT_SFPR_EQ(_F, _R, _I) | ||
#define RVMODEL_IO_ASSERT_DFPR_EQ(_D, _R, _I) | ||
#define RVMODEL_SET_MSW_INT | ||
#define RVMODEL_CLEAR_MSW_INT | ||
#define RVMODEL_CLEAR_MTIMER_INT | ||
#define RVMODEL_CLEAR_MEXT_INT | ||
|
||
#endif |
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
File renamed without changes.
22 changes: 22 additions & 0 deletions
22
ci-tests/riscof/spike/env/model_test.h → ...cross_check/riscof/spike/env/model_test.h
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
Oops, something went wrong.