Skip to content

Commit

Permalink
fix: remove rocket-specific code introduced from the kernel
Browse files Browse the repository at this point in the history
  • Loading branch information
XieJiSS authored Jan 15, 2024
1 parent 38fa369 commit ce34f07
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions include/boost/atomic/detail/pause.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -51,9 +51,6 @@ BOOST_FORCEINLINE void pause() BOOST_NOEXCEPT
#elif defined(__riscv) && __riscv_xlen == 64
#if defined(__riscv_zihintpause)
__asm__ __volatile__("pause" : : : "memory");
#elif defined(__riscv_muldiv)
/* In lieu of a halt instruction, induce a long-latency stall. */
__asm__ __volatile__("div %0, %0, zero" : "=r" (dummy));
#else
/* Encoding of the pause instruction */
__asm__ __volatile__ (".4byte 0x100000F");
Expand Down

0 comments on commit ce34f07

Please sign in to comment.