Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
L
linux
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
linux
Commits
7db41eb7
Commit
7db41eb7
authored
Aug 18, 2010
by
Avi Kivity
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
KVM: x86 emulator: add Src2Imm decoding
Needed for 3-operand IMUL. Signed-off-by:
Avi Kivity
<
avi@redhat.com
>
parent
39f21ee5
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
0 deletions
+4
-0
arch/x86/kvm/emulate.c
arch/x86/kvm/emulate.c
+4
-0
No files found.
arch/x86/kvm/emulate.c
View file @
7db41eb7
...
...
@@ -95,6 +95,7 @@
#define Src2CL (1<<29)
#define Src2ImmByte (2<<29)
#define Src2One (3<<29)
#define Src2Imm (4<<29)
#define Src2Mask (7<<29)
#define X2(x...) x, x
...
...
@@ -2844,6 +2845,9 @@ x86_decode_insn(struct x86_emulate_ctxt *ctxt)
c
->
src2
.
bytes
=
1
;
c
->
src2
.
val
=
1
;
break
;
case
Src2Imm
:
rc
=
decode_imm
(
ctxt
,
&
c
->
src2
,
imm_size
(
c
),
true
);
break
;
}
if
(
rc
!=
X86EMUL_CONTINUE
)
...
...
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