mirror of
https://github.com/xmrig/xmrig.git
synced 2024-11-18 10:01:06 +00:00
Fixed crash with GCC compiler
This commit is contained in:
parent
f85aba5d21
commit
c01c035269
1 changed files with 2 additions and 1 deletions
|
@ -380,7 +380,8 @@ namespace randomx {
|
|||
*(uint32_t*)(code + codePos + 10) = RandomX_CurrentConfig.ScratchpadL3Mask64_Calculated;
|
||||
*(uint32_t*)(code + codePos + 20) = RandomX_CurrentConfig.ScratchpadL3Mask64_Calculated;
|
||||
if (hasAVX) {
|
||||
*(uint32_t*)(code + codePos + 29) = 0xE977F8C5;
|
||||
uint32_t* p = (uint32_t*)(code + codePos + 29);
|
||||
*p = (*p & 0xFF000000U) | 0x0077F8C5U;
|
||||
}
|
||||
|
||||
codePos = prologueSize;
|
||||
|
|
Loading…
Reference in a new issue