[go: up one dir, main page]

RISC-V: Add Riscv pvm library to protocol environment

Closes RV-329

What

Add octez_riscv_pvm library to the protocol environment and to all binaries that use the riscv symbols.

Make the riscv module from the protocol environment expose functionality from the riscv pvm library.

Why

For the protocol to be able to use the Rust code which implements the RISC-V PVM.

How

Change the manifest accordingly such that targets needing the riscv symbols obtain them through linking with octez_rust_deps.

  • For prod_octez.ml replaced existing rustzcash_deps with rust_deps where needed
  • For prod_etherlink.ml added the Rust riscv lib with ocaml-api feature to the target lib_wasm_runtime. Not the best named solution, but an ergonomic one.

Manually testing the MR

# riscv specific tezt tests:
dune exec dune exec tezt/tests/main.exe -- riscv
# All targets build
dune build

Checklist

  • Document the interface of any function added or modified (see the coding guidelines)
  • Document any change to the user interface, including configuration parameters (see node configuration)
  • Provide automatic testing (see the testing guide).
  • For new features and bug fixes, add an item in the appropriate changelog (docs/protocols/alpha.rst for the protocol and the environment, CHANGES.rst at the root of the repository for everything else).
  • Select suitable reviewers using the Reviewers field below.
  • Select as Assignee the next person who should take action on that MR
Edited by Felix Puscasu

Merge request reports

Loading