mirror of
https://github.com/ZDoom/gzdoom-gles.git
synced 2025-01-31 04:20:34 +00:00
- fix crash in OP_RET handling
This commit is contained in:
parent
378e58731a
commit
e93d9570dc
1 changed files with 4 additions and 4 deletions
|
@ -104,8 +104,8 @@ void JitCompiler::EmitRET()
|
|||
Label L_endif = cc.newLabel();
|
||||
|
||||
cc.mov(reg_retnum, retnum);
|
||||
cc.test(reg_retnum, numret);
|
||||
cc.jg(L_endif);
|
||||
cc.cmp(reg_retnum, numret);
|
||||
cc.jge(L_endif);
|
||||
|
||||
cc.mov(location, x86::ptr(ret, retnum * sizeof(VMReturn)));
|
||||
|
||||
|
@ -221,8 +221,8 @@ void JitCompiler::EmitRETI()
|
|||
Label L_endif = cc.newLabel();
|
||||
|
||||
cc.mov(reg_retnum, retnum);
|
||||
cc.test(reg_retnum, numret);
|
||||
cc.jg(L_endif);
|
||||
cc.cmp(reg_retnum, numret);
|
||||
cc.jge(L_endif);
|
||||
|
||||
cc.mov(location, x86::ptr(ret, retnum * sizeof(VMReturn)));
|
||||
cc.mov(x86::dword_ptr(location), BCs);
|
||||
|
|
Loading…
Reference in a new issue