fix typo in monitor.c #1032
Workflow file for this run
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
name: CI | |
on: | |
push: | |
branches: [ master ] | |
pull_request: | |
branches: [ master ] | |
jobs: | |
basic-tests-xs: | |
runs-on: nemu | |
continue-on-error: false | |
timeout-minutes: 10 | |
name: nemu - Basics for XiangShan | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Setup env | |
run: | | |
echo "PATH=/nfs/home/share/riscv-toolchain-20230425/bin:$PATH" >> $GITHUB_ENV | |
echo "NEMU_HOME=$GITHUB_WORKSPACE" >> $GITHUB_ENV | |
echo "CI_WORKLOADS=/nfs/home/share/ci-workloads/" >> $GITHUB_ENV | |
echo "V_WORKLOAD_HOME=/nfs/home/share/ci-workloads/V-extension-tests" >> $GITHUB_ENV | |
- name: Build NEMU interpreter for XS | |
run: | | |
make riscv64-xs_defconfig | |
make -j | |
- name: test boot linux | |
run: | | |
# test boot linux | |
./build/riscv64-nemu-interpreter -b ${CI_WORKLOADS}/linux-hello-opensbi/fw_payload.bin | |
make clean-all | |
- name: test cpt taking and restoring using zstd format | |
run: | | |
make riscv64-xs-cpt_defconfig | |
make -j | |
cd resource/gcpt_restore && make && cd $NEMU_HOME | |
# take cpt, and put cpt in output_top/test/linux | |
bash ./scripts/take_zstd.sh | |
# restore cpt | |
make riscv64-xs-diff-spike_defconfig | |
make -j | |
bash ./scripts/restore_zstd.sh | |
make clean-all | |
- name: Build NEMU as difftest ref | |
run: | | |
make riscv64-xs-ref_defconfig | |
make -j | |
make clean-all | |
- name: Build NEMU as difftest dual ref | |
run: | | |
make riscv64-dual-xs-ref_defconfig | |
make -j | |
make clean-all | |
- name: Build NEMU with RVV | |
run: | | |
make riscv64-rvv_defconfig | |
make -j | |
./build/riscv64-nemu-interpreter -b ${CI_WORKLOADS}/linux-hello-opensbi/fw_payload.bin | |
make clean-all | |
- name: Build NEMU as difftest rvv ref | |
run: | | |
make riscv64-rvv-ref_defconfig | |
make -j | |
make clean-all | |
basic-tests-nutshell: | |
runs-on: nemu | |
continue-on-error: false | |
timeout-minutes: 10 | |
name: nemu - Basics for NutShell | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Setup env | |
run: | | |
echo "PATH=/nfs/home/share/riscv-toolchain-20230425/bin:$PATH" >> $GITHUB_ENV | |
echo "NEMU_HOME=$GITHUB_WORKSPACE" >> $GITHUB_ENV | |
echo "CI_WORKLOADS=/nfs/home/share/ci-workloads/" >> $GITHUB_ENV | |
- name: Build NEMU interpreter | |
run: | | |
make riscv64-nutshell_defconfig | |
make -j | |
- name: test boot linux | |
run: | | |
./build/riscv64-nemu-interpreter -b ${CI_WORKLOADS}/linux-hello/bbl.bin | |
make clean-all | |
- name: Build NEMU as difftest ref | |
run: | | |
make riscv64-nutshell-ref_defconfig | |
make -j | |
make clean-all | |
Guard-for-NEMU-as-DUT: | |
runs-on: nemu | |
continue-on-error: false | |
name: NEMU should report error if RVV agnostic is enabled when comparing against Spike ref; It should crash in the expected way | |
timeout-minutes: 20 | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Setup env | |
run: | | |
echo "PATH=/nfs/home/share/riscv-toolchain-20230425/bin:$PATH" >> $GITHUB_ENV | |
echo "NEMU_HOME=$GITHUB_WORKSPACE" >> $GITHUB_ENV | |
echo "TEST_HOME=/nfs/home/share/ci-workloads/V-extension-tests" >> $GITHUB_ENV | |
- name: Build NEMU with V extension and agnostic | |
run: | | |
make clean-all | |
make riscv64-xs-diff-spike-agnostic_defconfig | |
make -j | |
set -x | |
./build/riscv64-nemu-interpreter -b --diff $TEST_HOME/riscv64-spike-so --restore $TEST_HOME/hmmer_retro_6200_0.0378585.gz -r $TEST_HOME/v-gcpt.bin -I 2000000 > crash.log || exit_code=$? | |
if [ ${exit_code} -eq 0 ]; then echo "Difftest is broken, it should report error!" exit 1; fi | |
match=$(grep "wrong.*=.*ffff" crash.log -c) | |
if [ ${match} -eq 0 ]; then echo "Difftest is broken, it should report at least one agnostic related difference!" exit 1; fi | |
make clean-all | |
set +x | |
H-ext-tests: | |
runs-on: nemu | |
continue-on-error: false | |
name: nemu - H-extension | |
timeout-minutes: 60 | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Setup env | |
run: | | |
echo "PATH=/nfs/home/share/riscv-toolchain-20230425/bin:$PATH" >> $GITHUB_ENV | |
echo "NEMU_HOME=$GITHUB_WORKSPACE" >> $GITHUB_ENV | |
echo "TEST_HOME=/nfs/home/share/ci-workloads/H-extension-tests" >> $GITHUB_ENV | |
- name: Build NEMU with H extension as difftest ref | |
run: | | |
make riscv64-rvh-ref_defconfig | |
make -j | |
make clean-all | |
- name: Run Xvisor | |
run: | | |
make riscv64-rvh_defconfig | |
echo "#define CONFIG_DETERMINISTIC 1" >> ./include/generated/autoconf.h | |
make -j | |
./build/riscv64-nemu-interpreter -b $TEST_HOME/xvisor | |
make clean-all | |
- name: Run KVM | |
run: | | |
make riscv64-rvh_defconfig | |
make -j | |
./build/riscv64-nemu-interpreter -b $TEST_HOME/kvm | |
make clean-all | |
- name: Run Xvisor with DiffTest | |
run: | | |
git submodule update --init ready-to-run | |
make riscv64-xs-diff-spike_defconfig | |
echo "#define CONFIG_DETERMINISTIC 1" >> ./include/generated/autoconf.h | |
make -j | |
./build/riscv64-nemu-interpreter -b -d $TEST_HOME/riscv64-spike-so $TEST_HOME/xvisor | |
make clean-all | |
# - name: Run KVM with DiffTest | |
# run: | | |
# make riscv64-rvh-diff-spike_defconfig | |
# make -j | |
# ./build/riscv64-nemu-interpreter -b -d $TEST_HOME/riscv64-spike-H-ext-so $TEST_HOME/kvm | |
# make clean-all | |
V-ext-tests: | |
runs-on: nemu | |
continue-on-error: false | |
name: nemu - V-extension | |
timeout-minutes: 60 | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Setup env | |
run: | | |
echo "PATH=/nfs/home/share/riscv-toolchain-20230425/bin:$PATH" >> $GITHUB_ENV | |
echo "NEMU_HOME=$GITHUB_WORKSPACE" >> $GITHUB_ENV | |
echo "TEST_HOME=/nfs/home/share/ci-workloads/V-extension-tests" >> $GITHUB_ENV | |
- name: Build NEMU with V extension as difftest ref | |
run: | | |
make riscv64-rvv-diff-spike_defconfig | |
make -j | |
make clean-all | |
- name: Run Vector-spec06-checkpoint with Spike DiffTest | |
run: | | |
make riscv64-xs-diff-spike_defconfig | |
make -j | |
./build/riscv64-nemu-interpreter -b --diff $TEST_HOME/riscv64-spike-so --restore $TEST_HOME/hmmer_nph3_1886_0.000268086.gz -r $TEST_HOME/v-gcpt.bin -I 40000000 | |
./build/riscv64-nemu-interpreter -b --diff $TEST_HOME/riscv64-spike-so --restore $TEST_HOME/hmmer_retro_6200_0.0378585.gz -r $TEST_HOME/v-gcpt.bin -I 40000000 | |
./build/riscv64-nemu-interpreter -b --diff $TEST_HOME/riscv64-spike-so --restore $TEST_HOME/h264ref_sss_88321_0.0346343.gz -r $TEST_HOME/v-gcpt.bin -I 40000000 | |
./build/riscv64-nemu-interpreter -b --diff $TEST_HOME/riscv64-spike-so --restore $TEST_HOME/h264ref_foreman.baseline_8028_0.0414445.gz -r $TEST_HOME/v-gcpt.bin -I 40000000 | |
./build/riscv64-nemu-interpreter -b --diff $TEST_HOME/riscv64-spike-so --restore $TEST_HOME/h264ref_foreman.main_3027_0.0443573.gz -r $TEST_HOME/v-gcpt.bin -I 40000000 | |
./build/riscv64-nemu-interpreter -b --diff $TEST_HOME/riscv64-spike-so --restore $TEST_HOME/libquantum_41028_0.0840681.gz -r $TEST_HOME/v-gcpt.bin -I 40000000 | |
./build/riscv64-nemu-interpreter -b --diff $TEST_HOME/riscv64-spike-so --restore $TEST_HOME/bzip2_402_0.00785398.gz -r $TEST_HOME/v-gcpt.bin -I 40000000 | |
make clean-all | |
- name: Run OpenSBI+Linux+Vectorized_h264 with Spike DiffTest | |
run: | | |
make riscv64-xs-diff-spike_defconfig | |
make -j | |
./build/riscv64-nemu-interpreter -b --diff $TEST_HOME/riscv64-spike-so $TEST_HOME/opensbi_rvv_h264ref_sss -I 200000000 | |
make clean-all | |
compilation-test: | |
runs-on: nemu | |
continue-on-error: false | |
name: Compilation test | |
timeout-minutes: 60 | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v4 | |
- name: Setup env | |
run: | | |
echo "PATH=/nfs/home/share/riscv-toolchain-20230425/bin:$PATH" >> $GITHUB_ENV | |
echo "NEMU_HOME=$GITHUB_WORKSPACE" >> $GITHUB_ENV | |
- name: Try to compile | |
id: list_configs | |
run: | | |
bash ./scripts/compilation-test.sh | |
compile-difftest-so: | |
runs-on: ubuntu-latest | |
continue-on-error: false | |
name: Compile difftest-so | |
timeout-minutes: 10 | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v4 | |
- name: compile in CentOS 7 docker | |
run: | | |
bash ./scripts/generate_so_from_docker.sh | |
- name: archive difftest-so artifacts | |
uses: actions/upload-artifact@v4 | |
with: | |
name: difftest-so | |
path: | | |
artifact |