Skip to content

Commit 2c8c8f0

Browse files
japaricgnzlbg
authored andcommitted
acle/hints: use asm! for __nop
addresses #557 (comment)
1 parent 33f51f2 commit 2c8c8f0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

crates/core_arch/src/acle/hints.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,7 @@ pub unsafe fn __dbg(imm4: u32) {
114114
/// will increase execution time.
115115
#[inline(always)]
116116
pub unsafe fn __nop() {
117-
hint(HINT_NOP);
117+
asm!("NOP" : : : : "volatile")
118118
}
119119

120120
extern "C" {

0 commit comments

Comments
 (0)