Merge pull request #1515 from SChernykh/dev

Fix crash on Linux
This commit is contained in:
xmrig 2020-01-24 19:35:40 +07:00 committed by GitHub
commit 4e6b24d67d
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -94,8 +94,12 @@ DECL(randomx_program_prologue_first_load):
and eax, RANDOMX_SCRATCHPAD_MASK and eax, RANDOMX_SCRATCHPAD_MASK
ror rdx, 32 ror rdx, 32
and edx, RANDOMX_SCRATCHPAD_MASK and edx, RANDOMX_SCRATCHPAD_MASK
sub rsp, 24 sub rsp, 40
stmxcsr dword ptr [rsp] mov dword ptr [rsp], 9FC0h
mov dword ptr [rsp+4], 0BFC0h
mov dword ptr [rsp+8], 0DFC0h
mov dword ptr [rsp+12], 0FFC0h
mov dword ptr [rsp+32], -1
nop nop
nop nop
nop nop