Skip to content

Commit

Permalink
riscv64: Avoid F and V instruction generation
Browse files Browse the repository at this point in the history
As reported in issue cloud-hypervisor#299, the latest RHF goes boot loop since
`nightly-2023-06-07` Rust toolchain. This is because the recent Rust
generates code that includes F and V extensions, which we need to enable
these features on startup. This commit disables generation of these
extensions as a workaround.

Signed-off-by: Akira Moroo <retrage01@gmail.com>
  • Loading branch information
retrage committed Dec 12, 2023
1 parent 61565de commit b27c71b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion riscv64gcv-unknown-none-elf.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
"data-layout": "e-m:e-p:64:64-i64:64-i128:128-n64-S128",
"eh-frame-header": false,
"emit-debug-gdb-scripts": false,
"features": "+m,+a,+f,+d,+c,+v",
"features": "+m,+a,-f,+d,+c,-v",
"is-builtin": false,
"linker": "rust-lld",
"linker-flavor": "ld.lld",
Expand Down

0 comments on commit b27c71b

Please sign in to comment.