Merge pull request #2401 from SChernykh/dev
RandomX: fix broken light mode mining
This commit is contained in:
commit
f6a0646271
1 changed files with 4 additions and 4 deletions
|
@ -8,10 +8,10 @@
|
||||||
mov qword ptr [rsp+16], r13
|
mov qword ptr [rsp+16], r13
|
||||||
mov qword ptr [rsp+8], r14
|
mov qword ptr [rsp+8], r14
|
||||||
mov qword ptr [rsp+0], r15
|
mov qword ptr [rsp+0], r15
|
||||||
xor rbp, rax ;# modify "mx"
|
|
||||||
ror rbp, 32 ;# swap "ma" and "mx"
|
ror rbp, 32 ;# swap "ma" and "mx"
|
||||||
mov ebx, ebp ;# ecx = ma
|
xor rbp, rax ;# modify "mx"
|
||||||
and ebx, RANDOMX_DATASET_BASE_MASK
|
mov rbx, rbp ;# ebx = ma
|
||||||
shr ebx, 6 ;# ebx = Dataset block number
|
shr rbx, 38
|
||||||
|
and ebx, RANDOMX_DATASET_BASE_MASK / 64 ;# ebx = Dataset block number
|
||||||
;# add ebx, datasetOffset / 64
|
;# add ebx, datasetOffset / 64
|
||||||
;# call 32768
|
;# call 32768
|
Loading…
Reference in a new issue