From c18fd50ffcdfbd0e5e36106ba3a5eb34cea50ad5 Mon Sep 17 00:00:00 2001 From: Jeff Parsons Date: Mon, 24 Aug 2015 19:00:04 -0700 Subject: [PATCH] Don't halt on any GP_FAULT by default --- modules/pcjs/lib/x86func.js | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/modules/pcjs/lib/x86func.js b/modules/pcjs/lib/x86func.js index 5530a525d..1ee51f406 100644 --- a/modules/pcjs/lib/x86func.js +++ b/modules/pcjs/lib/x86func.js @@ -3869,11 +3869,12 @@ X86.fnFaultMessage = function(nFault, nError, fHalt) nFault == X86.EXCEPTION.GP_FAULT && bOpcode == X86.OPCODE.INTN) { fHalt = false; } - } else { - if (nFault == X86.EXCEPTION.PG_FAULT || nFault == X86.EXCEPTION.GP_FAULT && this.model == X86.MODEL_80386 /* || nFault == X86.EXCEPTION.NP_FAULT && bOpcode == 0x8E */) { - fHalt = true; - } } + // else { + // if (nFault == X86.EXCEPTION.PG_FAULT || nFault == X86.EXCEPTION.GP_FAULT && this.model == X86.MODEL_80386 /* || nFault == X86.EXCEPTION.NP_FAULT && bOpcode == 0x8E */) { + // fHalt = true; + // } + // } /* * If fHalt has been explicitly set to false, we also take that as a cue to disable fault messages