Support emulation of the privileged mov dr7,eax instruction.

This commit is contained in:
Marcus Meissner 2004-02-17 22:46:06 +00:00 committed by Alexandre Julliard
parent fabcd27800
commit 0462858eac
1 changed files with 14 additions and 0 deletions

View File

@ -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 );