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
42ce4910
Commit
42ce4910
authored
May 22, 2020
by
Paul Gofman
Committed by
Alexandre Julliard
May 22, 2020
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ntoskrnl.exe: Support 'xor Ev, Gv' opcode for x86_64.
Signed-off-by:
Paul Gofman
<
pgofman@codeweavers.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
e7778dd9
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
0 deletions
+13
-0
instr.c
dlls/ntoskrnl.exe/instr.c
+13
-0
No files found.
dlls/ntoskrnl.exe/instr.c
View file @
42ce4910
...
...
@@ -39,6 +39,7 @@ enum instr_op
{
INSTR_OP_MOV
,
INSTR_OP_OR
,
INSTR_OP_XOR
,
};
#ifdef __i386__
...
...
@@ -526,6 +527,10 @@ static void store_reg_word( CONTEXT *context, BYTE regmodrm, const BYTE *addr, i
for
(
i
=
0
;
i
<
op_size
;
++
i
)
reg
[
i
]
|=
addr
[
i
];
break
;
case
INSTR_OP_XOR
:
for
(
i
=
0
;
i
<
op_size
;
++
i
)
reg
[
i
]
^=
addr
[
i
];
break
;
}
}
...
...
@@ -544,6 +549,9 @@ static void store_reg_byte( CONTEXT *context, BYTE regmodrm, const BYTE *addr, i
case
INSTR_OP_OR
:
*
reg
|=
*
addr
;
break
;
case
INSTR_OP_XOR
:
*
reg
^=
*
addr
;
break
;
}
}
...
...
@@ -838,6 +846,7 @@ static DWORD emulate_instruction( EXCEPTION_RECORD *rec, CONTEXT *context )
case
0x8a
:
/* mov Eb, Gb */
case
0x8b
:
/* mov Ev, Gv */
case
0x0b
:
/* or Ev, Gv */
case
0x33
:
/* xor Ev, Gv */
{
BYTE
*
data
=
INSTR_GetOperandAddr
(
context
,
instr
+
1
,
prefixlen
+
1
,
long_addr
,
rex
,
segprefix
,
&
len
);
...
...
@@ -861,6 +870,10 @@ static DWORD emulate_instruction( EXCEPTION_RECORD *rec, CONTEXT *context )
store_reg_word
(
context
,
instr
[
1
],
wine_user_shared_data
+
offset
,
long_op
,
rex
,
INSTR_OP_OR
);
break
;
case
0x33
:
store_reg_word
(
context
,
instr
[
1
],
wine_user_shared_data
+
offset
,
long_op
,
rex
,
INSTR_OP_XOR
);
break
;
}
context
->
Rip
+=
prefixlen
+
len
+
1
;
return
ExceptionContinueExecution
;
...
...
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