From ac4086b2733dc5fca553af32b709c01dde8dbb82 Mon Sep 17 00:00:00 2001 From: XMRig Date: Sat, 28 Dec 2019 02:00:08 +0700 Subject: [PATCH] Fix build. --- src/crypto/randomx/jit_compiler_x86.cpp | 2 ++ src/crypto/rx/Rx.h | 3 +-- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/src/crypto/randomx/jit_compiler_x86.cpp b/src/crypto/randomx/jit_compiler_x86.cpp index 4f3e86d47..f32465bb1 100644 --- a/src/crypto/randomx/jit_compiler_x86.cpp +++ b/src/crypto/randomx/jit_compiler_x86.cpp @@ -385,7 +385,9 @@ namespace randomx { *p = (*p & 0xFF000000U) | 0x0077F8C5U; } +# ifdef XMRIG_FIX_RYZEN xmrig::Rx::setMainLoopBounds(code + prologueSize, code + epilogueOffset); +# endif codePos = prologueSize; memcpy(code + codePos - 48, &pcfg.eMask, sizeof(pcfg.eMask)); diff --git a/src/crypto/rx/Rx.h b/src/crypto/rx/Rx.h index 5b88dd4d7..1a26698d0 100644 --- a/src/crypto/rx/Rx.h +++ b/src/crypto/rx/Rx.h @@ -65,10 +65,9 @@ public: private: static void msrInit(const RxConfig &config); static void msrDestroy(); - -# ifdef XMRIG_FIX_RYZEN static void setupMainLoopExceptionFrame(); +# ifdef XMRIG_FIX_RYZEN static thread_local std::pair m_mainLoopBounds; # endif };