From 062c605eb115cdd0d9c6cf34ed4a7a97e26d68f2 Mon Sep 17 00:00:00 2001 From: Nekotekina Date: Tue, 8 Dec 2020 08:51:27 +0300 Subject: [PATCH] atomic.hpp: fixup (rsp addressing) --- rpcs3/util/atomic.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rpcs3/util/atomic.hpp b/rpcs3/util/atomic.hpp index dbb372de47..a0f8b5212f 100644 --- a/rpcs3/util/atomic.hpp +++ b/rpcs3/util/atomic.hpp @@ -52,7 +52,7 @@ FORCE_INLINE void atomic_fence_seq_cst() _InterlockedOr(static_cast(_AddressOfReturnAddress()), 0); _ReadWriteBarrier(); #else - __asm__ volatile ("lock orl $0, 0(%%esp);" ::: "cc", "memory"); + __asm__ volatile ("lock orl $0, 0(%%rsp);" ::: "cc", "memory"); #endif }