Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-winehq
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wine
wine-winehq
Commits
bd6e1976
Commit
bd6e1976
authored
Sep 07, 2014
by
Marcus Meissner
Committed by
Alexandre Julliard
Sep 08, 2014
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ntoskrnl.exe: Emulate some more mov eax -> drX.
parent
16816672
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
18 additions
and
2 deletions
+18
-2
instr.c
dlls/ntoskrnl.exe/instr.c
+18
-2
No files found.
dlls/ntoskrnl.exe/instr.c
View file @
bd6e1976
...
...
@@ -366,18 +366,34 @@ static DWORD emulate_instruction( EXCEPTION_RECORD *rec, CONTEXT *context )
context
->
Eip
+=
prefixlen
+
3
;
return
ExceptionContinueExecution
;
}
ERR
(
"Unsupported DR register, eip+2 is %02x
\n
"
,
instr
[
2
]);
ERR
(
"Unsupported DR register
-> EAX
, eip+2 is %02x
\n
"
,
instr
[
2
]);
/* fallthrough to illegal instruction */
break
;
case
0x23
:
/* mov eax drX */
switch
(
instr
[
2
])
{
case
0xc0
:
/* mov eax, dr0 */
context
->
Dr0
=
context
->
Eax
;
context
->
Eip
+=
prefixlen
+
3
;
return
ExceptionContinueExecution
;
case
0xc8
:
/* mov eax, dr1 */
context
->
Dr1
=
context
->
Eax
;
context
->
Eip
+=
prefixlen
+
3
;
return
ExceptionContinueExecution
;
case
0xd0
:
/* mov eax, dr2 */
context
->
Dr2
=
context
->
Eax
;
context
->
Eip
+=
prefixlen
+
3
;
return
ExceptionContinueExecution
;
case
0xd8
:
/* mov eax, dr3 */
context
->
Dr3
=
context
->
Eax
;
context
->
Eip
+=
prefixlen
+
3
;
return
ExceptionContinueExecution
;
case
0xf8
:
/* mov eax, dr7 */
context
->
Dr7
=
context
->
Eax
;
context
->
Eip
+=
prefixlen
+
3
;
return
ExceptionContinueExecution
;
}
ERR
(
"Unsupported DR register, eip+2 is %02x
\n
"
,
instr
[
2
]);
ERR
(
"Unsupported
EAX ->
DR register, eip+2 is %02x
\n
"
,
instr
[
2
]);
/* fallthrough to illegal instruction */
break
;
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment