Skip to content

Commit fa494e7

Browse files
japaricgnzlbg
authored andcommitted
acle/ex: CLREX requires v6k
1 parent efea01b commit fa494e7

File tree

1 file changed

+3
-1
lines changed
  • crates/core_arch/src/acle

1 file changed

+3
-1
lines changed

crates/core_arch/src/acle/ex.rs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,10 @@
33
/// Removes the exclusive lock created by LDREX
44
// Supported: v6, v6K, v7-M, v7-A, v7-R
55
// Not supported: v5, v6-M
6+
// NOTE: there's no dedicated CLREX instruction in v6 (<v6k); to clear the exclusive monitor users
7+
// have to do a dummy STREX operation
68
#[cfg(any(
7-
all(target_feature = "v6", not(target_feature = "mclass")), // excludes v6-M
9+
all(target_feature = "v6k", not(target_feature = "mclass")), // excludes v6-M
810
all(target_feature = "v7", target_feature = "mclass"), // v7-M
911
))]
1012
pub unsafe fn __clrex() {

0 commit comments

Comments
 (0)