mirror of
https://github.com/xmrig/xmrig.git
synced 2024-12-23 20:19:23 +00:00
commit
277352d072
4 changed files with 4 additions and 4 deletions
|
@ -55,7 +55,7 @@ if (WITH_RANDOMX)
|
||||||
)
|
)
|
||||||
# cheat because cmake and ccache hate each other
|
# cheat because cmake and ccache hate each other
|
||||||
set_property(SOURCE src/crypto/randomx/jit_compiler_x86_static.S PROPERTY LANGUAGE C)
|
set_property(SOURCE src/crypto/randomx/jit_compiler_x86_static.S PROPERTY LANGUAGE C)
|
||||||
elseif (WITH_ASM AND XMRIG_ARM AND CMAKE_SIZEOF_VOID_P EQUAL 8)
|
elseif (XMRIG_ARM AND CMAKE_SIZEOF_VOID_P EQUAL 8)
|
||||||
list(APPEND SOURCES_CRYPTO
|
list(APPEND SOURCES_CRYPTO
|
||||||
src/crypto/randomx/jit_compiler_a64_static.S
|
src/crypto/randomx/jit_compiler_a64_static.S
|
||||||
src/crypto/randomx/jit_compiler_a64.cpp
|
src/crypto/randomx/jit_compiler_a64.cpp
|
||||||
|
|
|
@ -107,7 +107,7 @@ namespace randomx {
|
||||||
#define RANDOMX_HAVE_COMPILER 1
|
#define RANDOMX_HAVE_COMPILER 1
|
||||||
class JitCompilerX86;
|
class JitCompilerX86;
|
||||||
using JitCompiler = JitCompilerX86;
|
using JitCompiler = JitCompilerX86;
|
||||||
#elif defined(XMRIG_FEATURE_ASM) && defined(__aarch64__)
|
#elif defined(__aarch64__)
|
||||||
#define RANDOMX_HAVE_COMPILER 1
|
#define RANDOMX_HAVE_COMPILER 1
|
||||||
class JitCompilerA64;
|
class JitCompilerA64;
|
||||||
using JitCompiler = JitCompilerA64;
|
using JitCompiler = JitCompilerA64;
|
||||||
|
|
|
@ -30,7 +30,7 @@ OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||||
|
|
||||||
#if defined(XMRIG_FEATURE_ASM) && (defined(_M_X64) || defined(__x86_64__))
|
#if defined(XMRIG_FEATURE_ASM) && (defined(_M_X64) || defined(__x86_64__))
|
||||||
#include "crypto/randomx/jit_compiler_x86.hpp"
|
#include "crypto/randomx/jit_compiler_x86.hpp"
|
||||||
#elif defined(XMRIG_FEATURE_ASM) && defined(__aarch64__)
|
#elif defined(__aarch64__)
|
||||||
#include "crypto/randomx/jit_compiler_a64.hpp"
|
#include "crypto/randomx/jit_compiler_a64.hpp"
|
||||||
#else
|
#else
|
||||||
#include "crypto/randomx/jit_compiler_fallback.hpp"
|
#include "crypto/randomx/jit_compiler_fallback.hpp"
|
||||||
|
|
|
@ -262,7 +262,7 @@ typedef void(randomx::JitCompilerX86::* InstructionGeneratorX86_2)(const randomx
|
||||||
memcpy(randomx::JitCompilerX86::engine + k, &p, sizeof(p)); \
|
memcpy(randomx::JitCompilerX86::engine + k, &p, sizeof(p)); \
|
||||||
} while (0)
|
} while (0)
|
||||||
|
|
||||||
#elif defined(XMRIG_FEATURE_ASM) && defined(XMRIG_ARMv8)
|
#elif defined(XMRIG_ARMv8)
|
||||||
|
|
||||||
Log2_ScratchpadL1 = Log2(ScratchpadL1_Size);
|
Log2_ScratchpadL1 = Log2(ScratchpadL1_Size);
|
||||||
Log2_ScratchpadL2 = Log2(ScratchpadL2_Size);
|
Log2_ScratchpadL2 = Log2(ScratchpadL2_Size);
|
||||||
|
|
Loading…
Reference in a new issue