ntoskrnl.exe: Return zero for unknown msr registers.
rdmsr should fault if called with the register not supported by CPU. But until we want to support the full range of CPU specific registers returning zero is probably a better fallback. Signed-off-by: Paul Gofman <pgofman@codeweavers.com> Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
parent
6255b031af
commit
6ceb6c7f47
|
@ -815,7 +815,11 @@ static DWORD emulate_instruction( EXCEPTION_RECORD *rec, CONTEXT *context )
|
|||
context->Rax = (ULONG)syscall_address;
|
||||
break;
|
||||
}
|
||||
default: return ExceptionContinueSearch;
|
||||
default:
|
||||
FIXME("reg %#x, returning 0.\n", reg);
|
||||
context->Rdx = 0;
|
||||
context->Rax = 0;
|
||||
break;
|
||||
}
|
||||
context->Rip += prefixlen + 2;
|
||||
return ExceptionContinueExecution;
|
||||
|
|
Loading…
Reference in New Issue