diff --git a/rust/config/riscv64_device.go b/rust/config/riscv64_device.go index e9aa8ef61..0a9c61a64 100644 --- a/rust/config/riscv64_device.go +++ b/rust/config/riscv64_device.go @@ -24,8 +24,12 @@ var ( Riscv64RustFlags = []string{ "-C force-frame-pointers=y", } - Riscv64ArchFeatureRustFlags = map[string][]string{"": {}} - Riscv64LinkFlags = []string{} + Riscv64ArchFeatureRustFlags = map[string][]string{ + "riscv64": { + "-C target-feature=+V,+Zba,+Zbb,+Zbs", + }, + } + Riscv64LinkFlags = []string{} Riscv64ArchVariantRustFlags = map[string][]string{"": {}} )