Fixed reading from the red zone

This commit is contained in:
tevador
2019-04-26 23:32:10 +02:00
parent e758c1e2b2
commit ff88a57a98
3 changed files with 7 additions and 5 deletions

View File

@@ -535,8 +535,9 @@ namespace randomx {
asmCode << "\trol rax, " << rotate << std::endl;
asmCode << "\tand eax, 24576" << std::endl;
asmCode << "\tor eax, 40896" << std::endl;
asmCode << "\tmov dword ptr [rsp-8], eax" << std::endl;
asmCode << "\tldmxcsr dword ptr [rsp-8]" << std::endl;
asmCode << "\tpush rax" << std::endl;
asmCode << "\tldmxcsr dword ptr [rsp]" << std::endl;
asmCode << "\tpop rax" << std::endl;
tracenop(instr);
}