Skip to content

Commit c44308f

Browse files
japaricgnzlbg
authored andcommitted
conditionally declare the dmb_dsb macro
1 parent 5e9621e commit c44308f

File tree

1 file changed

+5
-0
lines changed
  • crates/core_arch/src/acle/barrier

1 file changed

+5
-0
lines changed

crates/core_arch/src/acle/barrier/mod.rs

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,11 @@ mod cp15;
1919
pub use self::cp15::*;
2020

2121
// Dedicated instructions
22+
#[cfg(any(
23+
target_arch = "aarch64",
24+
target_feature = "v7",
25+
target_feature = "mclass"
26+
))]
2227
macro_rules! dmb_dsb {
2328
($A:ident) => {
2429
impl super::super::sealed::Dmb for $A {

0 commit comments

Comments
 (0)