-
Notifications
You must be signed in to change notification settings - Fork 1
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
136 changed files
with
4 additions
and
36,258 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
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 |
---|---|---|
@@ -1,46 +1,5 @@ | ||
# The test suite for [rv32emu project](https://github.com/sysprog21/rv32emu) | ||
# The prebuilt binaries for [rv32emu](https://github.com/sysprog21/rv32emu) | ||
|
||
## Prerequisites | ||
|
||
This test suite relies RISC-V GNU toolchain to build the ELF files. See the [prerequisites section](https://github.com/riscv-collab/riscv-gnu-toolchain?tab=readme-ov-file#prerequisites) of RISC-V GNU toolchain. | ||
|
||
## Build ELFs | ||
|
||
Run `make` to build the binaries. | ||
The default enabled extensions of RISC-V are `rv32gc` (a.k.a. rv32imafdc) and the optimization levels are `O0, O1, O2`. | ||
These two options can be overrided by the argument `RV32_EXT` and `OPT_LEVEL`. | ||
|
||
```shell | ||
$ make [RV32_EXT=<rv32_ext>] [OPT_LEVEL=<opt_level>] | ||
``` | ||
|
||
The `RV32_EXT` takes the same value that passing to `--with-arch` of the RISC-V GNU toolchain, and the `OPT_LEVEL` takes the combination of the whitespace separated number of 0, 1, 2 and quoted with the (double) quotation marks. | ||
|
||
e.g. | ||
|
||
```shell | ||
$ make RV32_EXT=rv32im OPT_LEVEL="0 2" | ||
``` | ||
|
||
Notice that the above command will build the corresponding toolchain first if it doesn't exist and might take a few time. | ||
You can set the `--jobs (-j)` option to enable the parallel build. | ||
|
||
--- | ||
|
||
The built binaries will be placed in the corresponding subdirectories under the `build` directory. | ||
|
||
``` | ||
rv32emu-prebuilt/ | ||
+-- build/ | ||
| +-- <RV32_EXT>/ | ||
| +-- O0/ | ||
| | ... | ||
| | | ||
| +-- O1/ | ||
| | ... | ||
| | | ||
| +-- O2/ | ||
| | ... | ||
| | ||
+-- ... | ||
``` | ||
- testbenches (x86-softfp / aarch64) | ||
- [RISC-V Sail model](https://github.com/riscv/sail-riscv) | ||
- Linux Kerenl image |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
Submodule riscv-gnu-toolchain
deleted from
f133b2
Oops, something went wrong.