From 1e26e586602ab0056233e23b5644c41fd86d6760 Mon Sep 17 00:00:00 2001 From: SChernykh Date: Wed, 23 Sep 2020 11:44:08 +0200 Subject: [PATCH] Fix for ARM compilation --- src/crypto/randomx/randomx.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/crypto/randomx/randomx.cpp b/src/crypto/randomx/randomx.cpp index 2804b1b78..c20859edb 100644 --- a/src/crypto/randomx/randomx.cpp +++ b/src/crypto/randomx/randomx.cpp @@ -337,12 +337,16 @@ typedef void(randomx::JitCompilerX86::* InstructionGeneratorX86_2)(const randomx INST_HANDLE(FDIV_M, FMUL_R); INST_HANDLE(FSQRT_R, FDIV_M); +#if defined(_M_X64) || defined(__x86_64__) if (xmrig::Cpu::info()->jccErratum()) { INST_HANDLE2(CBRANCH, CBRANCH, FSQRT_R); } else { INST_HANDLE2(CBRANCH, CBRANCH, FSQRT_R); } +#else + INST_HANDLE(CBRANCH, FSQRT_R); +#endif #if defined(_M_X64) || defined(__x86_64__) if (xmrig::Cpu::info()->hasBMI2()) {