Skip to content

Commit

Permalink
Merge pull request tock#4145 from jwnrt/opentitan-bitmanip
Browse files Browse the repository at this point in the history
Enable RISC-V bitmanip extensions for OpenTitan
  • Loading branch information
alevy authored Nov 18, 2024
2 parents a1966b8 + 23013e1 commit 0dfc4ff
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 1 deletion.
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -552,7 +552,7 @@ ci-job-cargo-test-build:


### ci-runner-github-qemu jobs:
QEMU_COMMIT_HASH=0ff5ab6f57a2427a3e83969b2e7dd71e04caae39
QEMU_COMMIT_HASH=abb1565d3d863cf210f18f70c4a42b0f39b8ccdb
define ci_setup_qemu_riscv
$(call banner,CI-Setup: Build QEMU)
@# Use the latest QEMU as it has OpenTitan support
Expand Down
11 changes: 11 additions & 0 deletions boards/cargo/riscv_bitmanip.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
# Licensed under the Apache License, Version 2.0 or the MIT License.
# SPDX-License-Identifier: Apache-2.0 OR MIT
# Copyright Tock Contributors 2024.

# bitmanip instruction support for RISC-V.

[build]
rustflags = [
# These are the ratified bitmanip extensions supported by LLVM.
"-Ctarget-feature=+zba,+zbb,+zbc,+zbs",
]
1 change: 1 addition & 0 deletions boards/opentitan/earlgrey-cw310/.cargo/config.toml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ include = [
"../../../cargo/tock_flags.toml",
"../../../cargo/unstable_flags.toml",
"../../../cargo/riscv_flags.toml",
"../../../cargo/riscv_bitmanip.toml",
"../../../cargo/virtual_function_elimination.toml",
"../../../cargo/panic_abort_tests.toml",
]
Expand Down

0 comments on commit 0dfc4ff

Please sign in to comment.