From: John Hodge Date: Sun, 1 Apr 2012 02:32:31 +0000 (+0800) Subject: Kernel/vm8086 - Added debugging message for 0F XX instructions X-Git-Tag: rel0.15~711^2~4 X-Git-Url: https://git.ucc.asn.au/?a=commitdiff_plain;h=337eb3d287e4291e16192a524f3173937e579866;p=tpg%2Facess2.git Kernel/vm8086 - Added debugging message for 0F XX instructions --- diff --git a/KernelLand/Kernel/arch/x86/vm8086.c b/KernelLand/Kernel/arch/x86/vm8086.c index 61348622..d93bdf18 100644 --- a/KernelLand/Kernel/arch/x86/vm8086.c +++ b/KernelLand/Kernel/arch/x86/vm8086.c @@ -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);