]> git.lizzy.rs Git - rust.git/blobdiff - library/core/src/hint.rs
Add tests for `#[no_mangle]` in `impl` blocks that looks like generic `impl` blocks...
[rust.git] / library / core / src / hint.rs
index f7aec73644921ab14cc7a158b9bc9e2a9c9e9b71..a0b65399da2c5444d4db3eaa7ac0a9f3b8687ef6 100644 (file)
@@ -128,7 +128,7 @@ pub fn spin_loop() {
         #[cfg(target_arch = "aarch64")]
         {
             // SAFETY: the `cfg` attr ensures that we only execute this on aarch64 targets.
-            unsafe { crate::arch::aarch64::__yield() };
+            unsafe { crate::arch::aarch64::__isb(crate::arch::aarch64::SY) };
         }
         #[cfg(target_arch = "arm")]
         {