Skip to content

Commit

Permalink
Cleanup unused files
Browse files Browse the repository at this point in the history
  • Loading branch information
vacantron committed Jan 19, 2025
1 parent 3063d64 commit f488857
Show file tree
Hide file tree
Showing 136 changed files with 4 additions and 36,258 deletions.
25 changes: 0 additions & 25 deletions .clang-format

This file was deleted.

1 change: 0 additions & 1 deletion .gitignore

This file was deleted.

3 changes: 0 additions & 3 deletions .gitmodules

This file was deleted.

82 changes: 0 additions & 82 deletions Makefile

This file was deleted.

49 changes: 4 additions & 45 deletions README.md
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
15 changes: 0 additions & 15 deletions mk/common.mk

This file was deleted.

23 changes: 0 additions & 23 deletions mk/toolchain.mk

This file was deleted.

1 change: 0 additions & 1 deletion riscv-gnu-toolchain
Submodule riscv-gnu-toolchain deleted from f133b2
Loading

0 comments on commit f488857

Please sign in to comment.