Fabian Maurer : ntoskrnl: Emulate sti/cli instructions on x86_64.
Alexandre Julliard
julliard at winehq.org
Thu Nov 29 15:09:37 CST 2018
Module: wine
Branch: stable
Commit: fe14404e25c6bcd8d820071e7e6b49585a0e39af
URL: https://source.winehq.org/git/wine.git/?a=commit;h=fe14404e25c6bcd8d820071e7e6b49585a0e39af
Author: Fabian Maurer <dark.shadow4 at web.de>
Date: Thu Aug 2 17:08:37 2018 +0200
ntoskrnl: Emulate sti/cli instructions on x86_64.
Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=45521
Signed-off-by: Fabian Maurer <dark.shadow4 at web.de>
Signed-off-by: Alexandre Julliard <julliard at winehq.org>
(cherry picked from commit d509b1579ef46638875cc87ec29f937123f8f52c)
Signed-off-by: Michael Stefaniuc <mstefani at winehq.org>
---
dlls/ntoskrnl.exe/instr.c | 5 +++++
1 file changed, 5 insertions(+)
diff --git a/dlls/ntoskrnl.exe/instr.c b/dlls/ntoskrnl.exe/instr.c
index aef0ed0..bf1fa3f 100644
--- a/dlls/ntoskrnl.exe/instr.c
+++ b/dlls/ntoskrnl.exe/instr.c
@@ -829,6 +829,11 @@ static DWORD emulate_instruction( EXCEPTION_RECORD *rec, CONTEXT *context )
}
break; /* Unable to emulate it */
}
+
+ case 0xfa: /* cli */
+ case 0xfb: /* sti */
+ context->Rip += prefixlen + 1;
+ return ExceptionContinueExecution;
}
return ExceptionContinueSearch; /* Unable to emulate it */
}
More information about the wine-cvs
mailing list