Kernel/vm8086 - Added debugging message for 0F XX instructions
authorJohn Hodge <[email protected]>
Sun, 1 Apr 2012 02:32:31 +0000 (10:32 +0800)
committerJohn Hodge <[email protected]>
Sun, 1 Apr 2012 02:32:31 +0000 (10:32 +0800)
KernelLand/Kernel/arch/x86/vm8086.c

index 6134862..d93bdf1 100644 (file)
@@ -321,6 +321,15 @@ void VM8086_GPF(tRegs *Regs)
                }
                break;
        
+       case 0x0F:
+               opcode = *(Uint8*)( (Regs->cs*16) + (Regs->eip&0xFFFF));
+               Log_Error("VM8086", "Error - Unknown opcode 0F %02x caused a GPF at %04x:%04x",
+                       opcode, Regs->cs, Regs->eip);
+               // Force an end to the call
+               Regs->cs = VM8086_MAGIC_CS;
+               Regs->eip = VM8086_MAGIC_IP;
+               break;
+
        default:
                Log_Error("VM8086", "Error - Unknown opcode %02x caused a GPF at %04x:%04x",
                        opcode, Regs->cs, Regs->eip);

UCC git Repository :: git.ucc.asn.au