-
-
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.
- Loading branch information
Showing
6 changed files
with
104 additions
and
5 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
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 @@ | ||
e199a2e0dcdc5d2d5705b717538bb7a1b3060725 |
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,27 @@ | ||
#!/bin/sh | ||
|
||
if [ $# -eq 0 ]; then | ||
echo "No sail model path given, must be given." | ||
exit | ||
elif [ $# -eq 1 ]; then | ||
SAIL_RISCV_ROOT=$1 | ||
echo "Path to sail model given as $1" | ||
else | ||
echo "Unrecognized arguments. Usage: riscv-ls [path to riscv sail model repo]" | ||
echo "If no path to sail model was given, it's automatically searched for using find" | ||
exit | ||
fi | ||
|
||
MKFILE="$SAIL_RISCV_ROOT/Makefile" | ||
|
||
# add instrumentation to the makefile in order to be able to print any variables | ||
echo 'print-% : ; @echo $* = $($*)' >> "$MKFILE" | ||
|
||
TOOL_ROOT=$PWD | ||
( | ||
cd $SAIL_RISCV_ROOT | ||
make print-SAIL_SRCS | xargs -n 1 | grep ".sail" | xargs -I {} echo "$SAIL_RISCV_ROOT"{} > "$TOOL_ROOT/sail.filepaths.txt" | ||
) | ||
|
||
# remove instrumentation from the makefile again to avoid version control headache | ||
sed -i '$d' $MKFILE |