}
/* change CPL before accessing the stack */
UINT32 _oldCPL = cpustate->CPL;
- if(_oldCPL != DPL) logerror("TRAP/INT GATE: Privilege changed from %d to %d at %08X, INT# %d, GATE %d TYPE %d\n", _oldCPL, DPL, cpustate->prev_pc, irq, irq_gate, type);
+ //if(_oldCPL != DPL) logerror("TRAP/INT GATE: Privilege changed from %d to %d at %08X, INT# %d, GATE %d TYPE %d\n", _oldCPL, DPL, cpustate->prev_pc, irq, irq_gate, type);
cpustate->CPL = DPL;
/* check for page fault at new stack TODO: check if stack frame crosses page boundary */
WRITE_TEST(cpustate, stack.base+newESP-1);
CHANGE_PC(cpustate,cpustate->eip);
cpustate->CPL = (cpustate->sreg[SS].flags >> 5) & 3;
UINT32 _newCPL = cpustate->CPL;
- if(_oldCPL != _newCPL) logerror("I286 TASK SWITCH: Privilege changed from %d to %d at ADDR %08X to %08X\n", _oldCPL, _newCPL, _oldPC, cpustate->pc);
+ //if(_oldCPL != _newCPL) logerror("I286 TASK SWITCH: Privilege changed from %d to %d at ADDR %08X to %08X\n", _oldCPL, _newCPL, _oldPC, cpustate->pc);
logerror("80286 Task Switch from selector %04x to %04x\n",old_task,selector);
}
cpustate->CPL = (cpustate->sreg[SS].flags >> 5) & 3;
UINT32 _newCPL = cpustate->CPL;
if(_oldCPL != _newCPL) logerror("I80386 TASK SWITCH: Privilege changed from %d to %d at ADDR %08X to %08X\n", _oldCPL, _newCPL, _oldPC, cpustate->pc);
- printf("i386 Task Switch from selector %04x to %04x\n",old_task,selector);
+ logerrpr("i386 Task Switch from selector %04x to %04x\n",old_task,selector);
}
static void i386_check_irq_line(i386_state *cpustate)
return;
}
UINT8 cr = (modrm >> 3) & 0x7;
- logdebug("MOV r32 CR%d VAL=(%08X)\n", cr, cpustate->cr[cr], oldpc);
+ //logdebug("MOV r32 CR%d VAL=(%08X)\n", cr, cpustate->cr[cr], oldpc);
if(cr < 5) {
if(cr == 1) {
FAULT(FAULT_UD, 0);
UINT8 cr = (modrm >> 3) & 0x7;
UINT32 data = LOAD_RM32(modrm);
UINT32 data_bak;
- logdebug("MOV CR%d r32 VAL=(%08X) at %08X\n", cr, data, oldpc);
+ //logdebug("MOV CR%d r32 VAL=(%08X) at %08X\n", cr, data, oldpc);
switch(cr)
{
case 0:
}
UINT8 dr = (modrm >> 3) & 0x7;
UINT32 data = LOAD_RM32(modrm);
- logdebug("MOV DR%d r32 (VAL=%08X)\n", dr, data);
+ //logdebug("MOV DR%d r32 (VAL=%08X)\n", dr, data);
switch(dr)
{
break;
default:
cpustate->dr[dr] = data;
- logerror("i386: mov_dr_r32 DR%d!\n", dr);
+ //logerror("i386: mov_dr_r32 DR%d!\n", dr);
return;
}
}
logerror("IRQ (%08x): Is in Virtual 8086 mode and IOPL != 3.\n",cpustate->pc);
FAULT(FAULT_GP,0);
} else {
- //BIOS_INT(interrupt);
+ BIOS_INT(interrupt);
}
} else {
//logerror("INT %02xh @16bit mode PC=%08X\n", interrupt, cpustate->pc - 1);
logerror("IRQ (%08x): Is in Virtual 8086 mode and IOPL != 3.\n",cpustate->pc);
FAULT(FAULT_GP,0);
} else {
- //BIOS_INT(interrupt);
+ BIOS_INT(interrupt);
}
} else {
//logerror("INT %02xh @32bit mode PC=%08X\n", interrupt, cpustate->pc - 1);