mirror of
https://github.com/xmrig/xmrig.git
synced 2024-12-23 12:09:22 +00:00
Merge pull request #1443 from SChernykh/dev
Fixed crash with GCC compiler
This commit is contained in:
commit
a1e8c1353f
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