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>
feature/deterministic
Paul Gofman 2020-05-25 11:19:30 +03:00 committed by Alexandre Julliard
parent 6255b031af
commit 6ceb6c7f47
1 changed files with 5 additions and 1 deletions

View File

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