Remove DEBUG code

This commit is contained in:
Jeff Parsons 2016-03-17 17:11:54 -07:00
commit 6202c108fd
4 changed files with 42114 additions and 17 deletions

View file

@ -67,7 +67,7 @@ and more.
### IBM OS/2
* [IBM OS/2 1.0](/disks/pc/os2/ibm/1.0/)
* IBM OS/2 1.1
* [IBM OS/2 1.1](/disks/pc/os2/ibm/1.1/)
* IBM OS/2 1.3
### Microsoft OS/2

File diff suppressed because it is too large Load diff

View file

@ -7,9 +7,8 @@ machines:
id: ibm5170
debugger: true
config: /devices/pc/machine/5170/vga/4096kb/debugger/machine.xml
automount:
A:
path: /disks/pc/os2/ibm/1.1/OS211-INSTALLATION.json
drives: '[{name:"20Mb Hard Disk",type:2,path:"/disks/pc/fixed/20mb/IBMOS211.json"}]'
automount: ''
messages: fault
---

View file

@ -813,19 +813,6 @@ X86Seg.prototype.loadDesc8 = function(addrDesc, sel, fProbe)
sizeGate = 0;
}
}
if (DEBUG) {
var sizeGateCheck = 0, fStackSwitchCheck = false;
if (rpl > this.cpl) {
sizeGateCheck = -1;
if (fCall === false || dpl == this.cpl || (type & X86.DESC.ACC.TYPE.CONFORMING) && dpl <= this.cpl) {
fStackSwitchCheck = true;
sizeGateCheck = 0;
}
}
if (sizeGate != sizeGateCheck || this.fStackSwitch != fStackSwitchCheck) {
this.cpu.stopCPU();
}
}
}
else if (type == X86.DESC.ACC.TYPE.TSS286 || type == X86.DESC.ACC.TYPE.TSS386) {
if (!this.switchTSS(sel, fCall)) {