Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

bump submodules #49

Merged
merged 1 commit into from
Aug 26, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ jobs:
# This workflow contains a single job called "build"
setup-develop-env:
# The type of runner that the job will run on
runs-on: ubuntu-22.04
runs-on: ubuntu-24.04

# Steps represent a sequence of tasks that will be executed as part of the job
steps:
Expand Down
2 changes: 1 addition & 1 deletion NEMU
Submodule NEMU updated 144 files
2 changes: 1 addition & 1 deletion XiangShan
Submodule XiangShan updated 404 files
16 changes: 15 additions & 1 deletion env-test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,21 @@ source env.sh
export NOOP_HOME=$(pwd)/NutShell

cd ${NEMU_HOME}
make riscv64-nutshell-ref_defconfig

# CPT_restorer need -march=rv64gcbkvh support. Test here.
CPT_CROSS_COMPILE_LIST='riscv64-linux-gnu- riscv64-unknown-linux-gnu-'
for COMPILE in $CPT_CROSS_COMPILE_LIST; do
echo | ${COMPILE}gcc -S -march=rv64gcbkvh -o /dev/null -x c -
if [ $? -eq 0 ]; then
CPT_CROSS_COMPILE=$COMPILE
break
fi
done
if [ -z $CPT_CROSS_COMPILE ]; then
echo 'No supported RISC-V compiler found! riscv64[-unknown]-linux-gnu-gcc with -march=rv64gcbkvh support needed.'
exit 1
fi
make riscv64-nutshell-ref_defconfig CPT_CROSS_COMPILE=${CPT_CROSS_COMPILE}
make

# Compile processor project
Expand Down
4 changes: 2 additions & 2 deletions install-verilator.sh
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@ git clone https://github.com/verilator/verilator
unset VERILATOR_ROOT # For bash
cd verilator

# XiangShan uses Verilator v5.020
git checkout v5.020
# XiangShan uses Verilator v5.028
git checkout v5.028

autoconf # Create ./configure script
# Configure and create Makefile
Expand Down
2 changes: 1 addition & 1 deletion setup-tools.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

apt update
apt install proxychains4 shadowsocks-libev vim wget git tmux make gcc clang llvm time curl libreadline6-dev libsdl2-dev gcc-riscv64-linux-gnu openjdk-11-jre zlib1g-dev device-tree-compiler flex autoconf bison sqlite3 libsqlite3-dev zstd libzstd-dev
sh -c "curl -L https://github.com/com-lihaoyi/mill/releases/download/0.11.6/0.11.6 > /usr/local/bin/mill && chmod +x /usr/local/bin/mill"
sh -c "curl -L https://github.com/com-lihaoyi/mill/releases/download/0.11.12/0.11.12 > /usr/local/bin/mill && chmod +x /usr/local/bin/mill"

# We need to use Verilator 4.204+, so we install Verilator manually
source ./install-verilator.sh