commit | 6b441c31530f2f579e3a0e9acf0e019011f95296 | [log] [tgz] |
---|---|---|
author | Naveen Dodda <ndodda@google.com> | Thu Feb 27 01:00:26 2025 +0000 |
committer | Naveen Dodda <ndodda@google.com> | Fri Feb 28 16:38:17 2025 -0800 |
tree | e3c7db6a72f615be831fa610179351bfdc4df11a | |
parent | 16c8bd09ce7fd62eac9e2aa58a51ed2a77392ac9 [diff] |
Custom toolcahin config to support semi hosting and softfloats Bypass-Presubmit-Reason: No presubmit configured Change-Id: Id7af89c3c7e1ebc83de3a4955d454cfbcb5147ab
Repo containing RISC-V toochain configuration for Kelvin.
This is work in progress bazel repo: please reach out to me for additional questions and suggestions.
If you have not already done so, download and install Bazel 6.2.1 or later.
TBD for toolchain download instrcutions
Run the build with the following command:
bazel-6.2.1 run -s --config=kelvin_rvv_rv32_toolchain_config //examples:hello-world-add-floats
You can also build rvv_add_intrinsic.
The above command builds hell-world-add-floats target with custom toolchain defined under toolcahins. Note: TBD add instrcutions to build the toochain from sracth
Execute binary with mpact_sim
{$PATH_TO_MPACT_SIM}/bazel-bin/riscv/rv32gv_sim --semihost_arm=true bazel-bin/hello-world-add-floats