Skip to content

Commit

Permalink
main: Enable riscv_ext_intrinsics feature
Browse files Browse the repository at this point in the history
This commit is to solve the following build error:
```
error[E0658]: use of unstable library feature 'riscv_ext_intrinsics'
   --> src/guest/vmexit.rs:236:9
    |
236 |         core::arch::riscv64::hfence_gvma_all();
    |         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    |
    = note: see issue #114544 <rust-lang/rust#114544> for more information
    = help: add `#![feature(riscv_ext_intrinsics)]` to the crate attributes to enable
```

Signed-off-by: Tan En De <[email protected]>
  • Loading branch information
endeneer committed Nov 30, 2023
1 parent 7b41657 commit 14db20e
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,8 @@
core_intrinsics,
naked_functions,
asm_const,
stdsimd
stdsimd,
riscv_ext_intrinsics
)]

#[macro_use]
Expand Down

0 comments on commit 14db20e

Please sign in to comment.