Skip to content

Commit

Permalink
Fix Apple clang
Browse files Browse the repository at this point in the history
  • Loading branch information
RipleyTom committed Jan 26, 2024
1 parent 6f5bcf1 commit deea253
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion rpcs3/util/asm.hpp
Expand Up @@ -442,7 +442,8 @@ namespace utils
__asm__ volatile("lock orl $0, 0(%0)" :: "r" (ptr));
#elif defined(ARCH_ARM64)
u32 value = 0;
__asm__ volatile ("ldset %w0, %w0, %1" : "+r"(value), "=Q"(*ptr) : "r"(value));
u32* u32_ptr = ptr;
__asm__ volatile ("ldset %w0, %w0, %1" : "+r"(value), "=Q"(*u32_ptr) : "r"(value));
#else
*static_cast<atomic_t<u32> *>(ptr) += 0;
#endif
Expand Down

0 comments on commit deea253

Please sign in to comment.