Skip to content

Commit

Permalink
bump submodules (#49)
Browse files Browse the repository at this point in the history
  • Loading branch information
Tang-Haojin authored Aug 26, 2024
1 parent 9561d52 commit 2bb84ce
Show file tree
Hide file tree
Showing 9 changed files with 24 additions and 10 deletions.
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

0 comments on commit 2bb84ce

Please sign in to comment.