Skip to content

Commit adb92ae

Browse files
committed
rustc_target: Adjust RISC-V feature implication (Za64rs and Za128rs)
The Za64rs extension (reservation set -- a primitive memory unit of LR/SC atomic operations -- is naturally aligned and *at most* 64 bytes) is a superset of the Za128rs extension (*at most* 128 bytes; note that smaller the reservation set is, more fine grained control over atomics). This commit handles this as a feature implication.
1 parent b45dd71 commit adb92ae

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

compiler/rustc_target/src/target_features.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -507,7 +507,7 @@ static RISCV_FEATURES: &[(&str, Stability, ImpliedFeatures)] = &[
507507
("unaligned-vector-mem", Unstable(sym::riscv_target_feature), &[]),
508508
("v", Unstable(sym::riscv_target_feature), &["zvl128b", "zve64d"]),
509509
("za128rs", Unstable(sym::riscv_target_feature), &[]),
510-
("za64rs", Unstable(sym::riscv_target_feature), &[]),
510+
("za64rs", Unstable(sym::riscv_target_feature), &["za128rs"]), // Za64rs ⊃ Za128rs
511511
("zaamo", Unstable(sym::riscv_target_feature), &[]),
512512
("zabha", Unstable(sym::riscv_target_feature), &["zaamo"]),
513513
("zacas", Unstable(sym::riscv_target_feature), &["zaamo"]),

0 commit comments

Comments
 (0)