Added generic secure JIT support for RandomX.

This commit is contained in:
XMRig
2020-12-11 23:17:54 +07:00
parent 014e3955e4
commit 84443a4e8b
19 changed files with 227 additions and 110 deletions

View File

@@ -219,7 +219,7 @@ static void patchAsmVariants()
patchCode(cn_double_double_mainloop_sandybridge_asm, cnv2_double_mainloop_sandybridge_asm, ITER);
}
VirtualMemory::protectExecutableMemory(base, allocation_size);
VirtualMemory::protectRX(base, allocation_size);
VirtualMemory::flushInstructionCache(base, allocation_size);
}
} // namespace xmrig