File tree Expand file tree Collapse file tree 4 files changed +44
-1
lines changed Expand file tree Collapse file tree 4 files changed +44
-1
lines changed Original file line number Diff line number Diff line change
1
+ # Expect host is Linux/x86_64
2
+ check_platform ()
3
+ {
4
+ MACHINE_TYPE=` uname -m`
5
+ if [ ${MACHINE_TYPE} != ' x86_64' ]; then
6
+ exit
7
+ fi
8
+
9
+ OS_TYPE=` uname -s`
10
+ if [ ${OS_TYPE} != ' Linux' ]; then
11
+ exit
12
+ fi
13
+ }
Original file line number Diff line number Diff line change
1
+ #! /usr/bin/env bash
2
+
3
+ . .ci/common.sh
4
+
5
+ check_platform
6
+
7
+ mkdir -p toolchain
8
+
9
+ # GNU Toolchain for RISC-V
10
+ GCC_VER=12.2.0-1
11
+ XPACK_REPO=https://github.com/xpack-dev-tools/riscv-none-elf-gcc-xpack/releases/download
12
+
13
+ set -x
14
+
15
+ wget -q \
16
+ ${XPACK_REPO} /v${GCC_VER} /xpack-riscv-none-elf-gcc-${GCC_VER} -linux-x64.tar.gz -O- \
17
+ | tar -C toolchain -xz
18
+
19
+ export PATH=` pwd` /toolchain/xpack-riscv-none-elf-gcc-${GCC_VER} /bin:$PATH
20
+
21
+ make clean
22
+ make arch-test RISCV_DEVICE=I || exit 1
23
+ make arch-test RISCV_DEVICE=M || exit 1
24
+ make arch-test RISCV_DEVICE=C || exit 1
25
+ make arch-test RISCV_DEVICE=Zifencei || exit 1
26
+ make arch-test RISCV_DEVICE=privilege || exit 1
Original file line number Diff line number Diff line change 24
24
make distclean ENABLE_COMPUTED_GOTO=0 ENABLE_EXT_C=1
25
25
make distclean ENABLE_GDBSTUB=0
26
26
make distclean ENABLE_SDL=0
27
+ - name : architectural test
28
+ run : |
29
+ sh .ci/riscv-tests.sh
30
+ shell : bash
27
31
28
32
coding_style :
29
33
runs-on : ubuntu-22.04
Original file line number Diff line number Diff line change 1
1
# RISC-V RV32I[ MACF] emulator with ELF support
2
-
2
+ ![ GitHub Actions ] ( https://github.com/sysprog21/rv32emu/actions/workflows/main.yml/badge.svg )
3
3
```
4
4
/--===============------\
5
5
______ __ | |⎺⎺⎺⎺⎺⎺⎺⎺⎺⎺⎺⎺⎺⎺⎺| |
You can’t perform that action at this time.
0 commit comments