Skip to content
Permalink
Browse files

Fixed BE JIT function address.

  • Loading branch information...
nioroso-x3 committed May 13, 2019
1 parent 23d65e4 commit 940eb40c858cac11870b9cfe501c83d9428a8796
Showing with 2 additions and 4 deletions.
  1. +0 −2 src/crypto/CryptonightR_JIT.c
  2. +2 −2 src/crypto/slow-hash.c
@@ -140,7 +140,6 @@ int ppcJIT_load(void* execmem, uint32_t* code, uint64_t INST_LEN){
}
}
if(idx >= INST_LEN){
printf("JIT BUFFER FILLED UP!\n");
return -1;
}
for (idx = 0; code[idx] != 0x00000000; ++idx){
@@ -225,7 +224,6 @@ int v4_generate_JIT_code(const struct V4_Instruction* code, v4_random_math_JIT_f
return 0;
#elif defined __PPC__ || defined __PPC64__
if(buf == NULL){
printf("NULL BUFFER!\n");
return -1;
}
printf("Started compiling PPC64 JIT at %p\n",buf);
@@ -333,8 +333,8 @@ static inline int use_v4_jit(void)
V4_REG_LOAD(r + 8, (uint64_t*)(_b1) + 1); \
\
if (jit){ \
hp_jitfunc = (v4_random_math_JIT_func)((uint8_t*)hp_jitfunc + 4096 - sizeof(void*)) ; \
hp_jitfunc(r); \
v4_random_math_JIT_func BEfunc = (v4_random_math_JIT_func)((uint8_t*)hp_jitfunc + 4096 - sizeof(void*)) ; \
BEfunc(r); \
} \
else \
v4_random_math(code, r); \

0 comments on commit 940eb40

Please sign in to comment.
You can’t perform that action at this time.