Skip to content

Commit

Permalink
Update SAIL and RISCOF test repos. Recompile SAIL.
Browse files Browse the repository at this point in the history
  • Loading branch information
cr1901 committed Jan 14, 2025
1 parent 11f970d commit 2c1d769
Show file tree
Hide file tree
Showing 5 changed files with 10 additions and 4 deletions.
7 changes: 6 additions & 1 deletion doc/development/testing.md
Original file line number Diff line number Diff line change
Expand Up @@ -525,12 +525,17 @@ opam switch create create ocaml-base-compiler.4.08.1
opam install sail -y
```

Then, to actually _rebuild_ the SAIL RISC-V emulators in a _hopefully_ turnkey
Then, to actually _(re)build_ the SAIL RISC-V emulators in a _hopefully_ turnkey
fashion, run `pdm doit _build_sail`. As with other `doit` tasks, this should
not be relied upon for normal development. Note that the actual build requires
`make`; `opam` only handles installing dependencies, and delegates to `make`
for building.

```{hint}
You will probably want to run `pdm doit forget _decompress_sail` afterwards,
so that your fresh new SAIL emulator replaces the old one :).
```

```{todo}
It'd be nice to remove the immediate dependency on `make`. Since we don't want
to _install_ the emulators in the system, it should be in principle possible to
Expand Down
3 changes: 2 additions & 1 deletion dodo.py
Original file line number Diff line number Diff line change
Expand Up @@ -209,7 +209,8 @@ def opam_vars(): # noqa: D103
continue
tmp = var.split("=")
k, v = tmp
vars[k] = v
# I don't remember needing this at the end of 2023...
vars[k] = v.strip("'")

return {"env": vars}

Expand Down
Binary file modified tests/riscof/bin/riscv_sim_RV32.gz
Binary file not shown.
2 changes: 1 addition & 1 deletion tests/riscof/riscv-arch-test
Submodule riscv-arch-test updated 894 files
2 changes: 1 addition & 1 deletion tests/riscof/sail-riscv
Submodule sail-riscv updated 168 files

0 comments on commit 2c1d769

Please sign in to comment.