Merge pull request #1443 from SChernykh/dev

Fixed crash with GCC compiler
This commit is contained in:
xmrig 2019-12-18 23:45:36 +07:00 committed by GitHub
commit a1e8c1353f
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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;