mirror of
https://github.com/xmrig/xmrig.git
synced 2025-03-16 16:42:14 +00:00
commit
59bd6d4187
2 changed files with 9 additions and 4 deletions
|
@ -33,7 +33,12 @@ OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||||
#include "crypto/randomx/reciprocal.h"
|
#include "crypto/randomx/reciprocal.h"
|
||||||
#include "crypto/randomx/virtual_memory.hpp"
|
#include "crypto/randomx/virtual_memory.hpp"
|
||||||
|
|
||||||
void randomx_set_huge_pages_jit(bool) {}
|
static bool hugePagesJIT = false;
|
||||||
|
|
||||||
|
void randomx_set_huge_pages_jit(bool hugePages)
|
||||||
|
{
|
||||||
|
hugePagesJIT = hugePages;
|
||||||
|
}
|
||||||
|
|
||||||
namespace ARMV8A {
|
namespace ARMV8A {
|
||||||
|
|
||||||
|
@ -91,8 +96,8 @@ static size_t CalcDatasetItemSize()
|
||||||
|
|
||||||
constexpr uint32_t IntRegMap[8] = { 4, 5, 6, 7, 12, 13, 14, 15 };
|
constexpr uint32_t IntRegMap[8] = { 4, 5, 6, 7, 12, 13, 14, 15 };
|
||||||
|
|
||||||
JitCompilerA64::JitCompilerA64(bool)
|
JitCompilerA64::JitCompilerA64(bool hugePagesEnable)
|
||||||
: code((uint8_t*) allocExecutableMemory(CodeSize + CalcDatasetItemSize()))
|
: code((uint8_t*) allocExecutableMemory(CodeSize + CalcDatasetItemSize(), hugePagesJIT && hugePagesEnable))
|
||||||
, literalPos(ImulRcpLiteralsEnd)
|
, literalPos(ImulRcpLiteralsEnd)
|
||||||
, num32bitLiterals(0)
|
, num32bitLiterals(0)
|
||||||
{
|
{
|
||||||
|
|
|
@ -46,7 +46,7 @@ namespace randomx {
|
||||||
|
|
||||||
class JitCompilerA64 {
|
class JitCompilerA64 {
|
||||||
public:
|
public:
|
||||||
explicit JitCompilerA64(bool);
|
explicit JitCompilerA64(bool hugePagesEnable);
|
||||||
~JitCompilerA64();
|
~JitCompilerA64();
|
||||||
|
|
||||||
void prepare() {}
|
void prepare() {}
|
||||||
|
|
Loading…
Reference in a new issue