Skip to content

Commit

Permalink
Fix evalCall corrupting R10, R11
Browse files Browse the repository at this point in the history
  • Loading branch information
yuxiaomao committed Nov 25, 2024
1 parent 7f2cf70 commit 01c822e
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion hld/Eval.hx
Original file line number Diff line number Diff line change
Expand Up @@ -411,7 +411,8 @@ class Eval {
}

var nextCpu = 0, nextFpu = 0;
var callRegs = jit.isWinCall ? [Ecx, Edx, R8, R9] : [Edi, Esi, Edx, Ecx, R8, R9];
// Save all SCRATCH_REGS because we might be in the middle of a function
var callRegs = jit.isWinCall ? [Ecx, Edx, R8, R9, R10, R11] : [Edi, Esi, Edx, Ecx, R8, R9, R10, R11];
for( i => r in callRegs ) {
pushReg(r);
pushReg(NativeReg.XMM(i));
Expand Down

0 comments on commit 01c822e

Please sign in to comment.