Browse Source

fix: 32 位版本笔误

YdrMaster 2 years ago
parent
commit
04868c2780
1 changed files with 1 additions and 1 deletions
  1. 1 1
      src/util.rs

+ 1 - 1
src/util.rs

@@ -126,7 +126,7 @@ impl<T: ?Sized> AmoOncePtr<T> {
                 (*self.meta.get()) = MaybeUninit::new(core::ptr::metadata(ptr));
                 #[cfg(target_pointer_width = "32")]
                 asm!(
-                    "amoswap.d.rl zero, {src}, ({dst})",
+                    "amoswap.w.rl zero, {src}, ({dst})",
                     src = in(reg) ptr as *const (),
                     dst = in(reg) self.ptr.get(),
                 );