Make far calls restartable when they trigger a fault pushing the return address onto the stack

This commit is contained in:
Jeff Parsons 2015-10-18 17:40:29 -07:00
commit b0ada4229d
4 changed files with 68 additions and 31 deletions

View file

@ -1397,6 +1397,7 @@ X86CPU.prototype.resetRegs = function()
* currently opLIP is updated prior to every instruction, but opLSP is updated only for instructions
* that read/write the stack (eg, RETF) and should otherwise remain set to X86.ADDR_INVALID.
*/
this.opCS = -1;
this.opLIP = this.opLSP = X86.ADDR_INVALID;
/*