mirror of
https://github.com/RPCS3/rpcs3.git
synced 2025-02-07 03:40:07 +00:00
Arm version of trigger_write_page_fault
This commit is contained in:
parent
07dba02897
commit
6f5bcf12c6
@ -440,6 +440,9 @@ namespace utils
|
||||
{
|
||||
#if defined(ARCH_X64) && !defined(_MSC_VER)
|
||||
__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));
|
||||
#else
|
||||
*static_cast<atomic_t<u32> *>(ptr) += 0;
|
||||
#endif
|
||||
|
Loading…
x
Reference in New Issue
Block a user