Commit 0462858e authored by Marcus Meissner's avatar Marcus Meissner Committed by Alexandre Julliard

Support emulation of the privileged mov dr7,eax instruction.

parent fabcd278
...@@ -559,6 +559,20 @@ DWORD INSTR_EmulateInstruction( EXCEPTION_RECORD *rec, CONTEXT86 *context ) ...@@ -559,6 +559,20 @@ DWORD INSTR_EmulateInstruction( EXCEPTION_RECORD *rec, CONTEXT86 *context )
} }
/* fallthrough to illegal instruction */ /* fallthrough to illegal instruction */
break; break;
case 0x21: /* mov drX, eax */
switch (instr[2])
{
case 0xf8: /* mov dr7, eax */
TRACE("mov dr7,eax at 0x%08lx\n",context->Eip);
context->Eax = 0x400;
context->Eip += prefixlen+3;
return ExceptionContinueExecution;
default: /* fallthrough to illegal instruction */
ERR("Unknown DR register, eip+2 is %02x\n", instr[2]);
break;
}
/* fallthrough to illegal instruction */
break;
case 0xa1: /* pop fs */ case 0xa1: /* pop fs */
{ {
WORD seg = *(WORD *)get_stack( context ); WORD seg = *(WORD *)get_stack( context );
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment