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
Kirill Smelkov
linux
Commits
f3a1b9f4
Commit
f3a1b9f4
authored
Aug 18, 2010
by
Avi Kivity
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
KVM: x86 emulator: implement IMUL REG, R/M, imm8 (opcode 6B)
Signed-off-by:
Avi Kivity
<
avi@redhat.com
>
parent
40ece7c7
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
1 deletion
+11
-1
arch/x86/kvm/emulate.c
arch/x86/kvm/emulate.c
+11
-1
No files found.
arch/x86/kvm/emulate.c
View file @
f3a1b9f4
...
...
@@ -2264,6 +2264,15 @@ static int em_ret_near_imm(struct x86_emulate_ctxt *ctxt)
return
X86EMUL_CONTINUE
;
}
static
int
em_imul_3op
(
struct
x86_emulate_ctxt
*
ctxt
)
{
struct
decode_cache
*
c
=
&
ctxt
->
decode
;
c
->
dst
.
val
=
c
->
src2
.
val
;
emulate_2op_SrcV_nobyte
(
"imul"
,
c
->
src
,
c
->
dst
,
ctxt
->
eflags
);
return
X86EMUL_CONTINUE
;
}
#define D(_y) { .flags = (_y) }
#define N D(0)
#define G(_f, _g) { .flags = ((_f) | Group), .u.group = (_g) }
...
...
@@ -2371,7 +2380,8 @@ static struct opcode opcode_table[256] = {
N
,
N
,
N
,
N
,
/* 0x68 - 0x6F */
I
(
SrcImm
|
Mov
|
Stack
,
em_push
),
N
,
I
(
SrcImmByte
|
Mov
|
Stack
,
em_push
),
N
,
I
(
SrcImmByte
|
Mov
|
Stack
,
em_push
),
I
(
DstReg
|
SrcMem
|
ModRM
|
Src2ImmByte
,
em_imul_3op
),
D
(
DstDI
|
ByteOp
|
Mov
|
String
),
D
(
DstDI
|
Mov
|
String
),
/* insb, insw/insd */
D
(
SrcSI
|
ByteOp
|
ImplicitOps
|
String
),
D
(
SrcSI
|
ImplicitOps
|
String
),
/* outsb, outsw/outsd */
/* 0x70 - 0x7F */
...
...
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