Prepare for JIT compiler support for other platforms

This commit is contained in:
tevador
2019-05-12 22:31:48 +02:00
parent a560cec3e7
commit 3dd21ea93d
12 changed files with 189 additions and 54 deletions

View File

@@ -83,6 +83,17 @@ namespace randomx {
#endif
#endif
#if defined(_M_X64) || defined(__x86_64__)
class JitCompilerX86;
using JitCompiler = JitCompilerX86;
#elif defined(__aarch64__)
class JitCompilerA64;
using JitCompiler = JitCompilerA64;
#else
class JitCompilerFallback;
using JitCompiler = JitCompilerFallback;
#endif
using addr_t = uint32_t;
using int_reg_t = uint64_t;