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
aa97bb48
Commit
aa97bb48
authored
Jan 20, 2010
by
Avi Kivity
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
KVM: x86 emulator: implement movdqu instruction (f3 0f 6f, f3 0f 7f)
Signed-off-by:
Avi Kivity
<
avi@redhat.com
>
parent
1253791d
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
21 additions
and
2 deletions
+21
-2
arch/x86/kvm/emulate.c
arch/x86/kvm/emulate.c
+21
-2
No files found.
arch/x86/kvm/emulate.c
View file @
aa97bb48
...
@@ -2415,11 +2415,19 @@ static int em_mov(struct x86_emulate_ctxt *ctxt)
...
@@ -2415,11 +2415,19 @@ static int em_mov(struct x86_emulate_ctxt *ctxt)
return
X86EMUL_CONTINUE
;
return
X86EMUL_CONTINUE
;
}
}
static
int
em_movdqu
(
struct
x86_emulate_ctxt
*
ctxt
)
{
struct
decode_cache
*
c
=
&
ctxt
->
decode
;
memcpy
(
&
c
->
dst
.
vec_val
,
&
c
->
src
.
vec_val
,
c
->
op_bytes
);
return
X86EMUL_CONTINUE
;
}
#define D(_y) { .flags = (_y) }
#define D(_y) { .flags = (_y) }
#define N D(0)
#define N D(0)
#define G(_f, _g) { .flags = ((_f) | Group), .u.group = (_g) }
#define G(_f, _g) { .flags = ((_f) | Group), .u.group = (_g) }
#define GD(_f, _g) { .flags = ((_f) | Group | GroupDual), .u.gdual = (_g) }
#define GD(_f, _g) { .flags = ((_f) | Group | GroupDual), .u.gdual = (_g) }
#define I(_f, _e) { .flags = (_f), .u.execute = (_e) }
#define I(_f, _e) { .flags = (_f), .u.execute = (_e) }
#define GP(_f, _g) { .flags = ((_f) | Prefix), .u.gprefix = (_g) }
#define D2bv(_f) D((_f) | ByteOp), D(_f)
#define D2bv(_f) D((_f) | ByteOp), D(_f)
#define I2bv(_f, _e) I((_f) | ByteOp, _e), I(_f, _e)
#define I2bv(_f, _e) I((_f) | ByteOp, _e), I(_f, _e)
...
@@ -2484,6 +2492,10 @@ static struct opcode group11[] = {
...
@@ -2484,6 +2492,10 @@ static struct opcode group11[] = {
I
(
DstMem
|
SrcImm
|
ModRM
|
Mov
,
em_mov
),
X7
(
D
(
Undefined
)),
I
(
DstMem
|
SrcImm
|
ModRM
|
Mov
,
em_mov
),
X7
(
D
(
Undefined
)),
};
};
static
struct
gprefix
pfx_0f_6f_0f_7f
=
{
N
,
N
,
N
,
I
(
Sse
,
em_movdqu
),
};
static
struct
opcode
opcode_table
[
256
]
=
{
static
struct
opcode
opcode_table
[
256
]
=
{
/* 0x00 - 0x07 */
/* 0x00 - 0x07 */
D6ALU
(
Lock
),
D6ALU
(
Lock
),
...
@@ -2608,9 +2620,15 @@ static struct opcode twobyte_table[256] = {
...
@@ -2608,9 +2620,15 @@ static struct opcode twobyte_table[256] = {
/* 0x50 - 0x5F */
/* 0x50 - 0x5F */
N
,
N
,
N
,
N
,
N
,
N
,
N
,
N
,
N
,
N
,
N
,
N
,
N
,
N
,
N
,
N
,
N
,
N
,
N
,
N
,
N
,
N
,
N
,
N
,
N
,
N
,
N
,
N
,
N
,
N
,
N
,
N
,
/* 0x60 - 0x6F */
/* 0x60 - 0x6F */
N
,
N
,
N
,
N
,
N
,
N
,
N
,
N
,
N
,
N
,
N
,
N
,
N
,
N
,
N
,
N
,
N
,
N
,
N
,
N
,
N
,
N
,
N
,
N
,
N
,
N
,
N
,
N
,
N
,
N
,
N
,
GP
(
SrcMem
|
DstReg
|
ModRM
|
Mov
,
&
pfx_0f_6f_0f_7f
),
/* 0x70 - 0x7F */
/* 0x70 - 0x7F */
N
,
N
,
N
,
N
,
N
,
N
,
N
,
N
,
N
,
N
,
N
,
N
,
N
,
N
,
N
,
N
,
N
,
N
,
N
,
N
,
N
,
N
,
N
,
N
,
N
,
N
,
N
,
N
,
N
,
N
,
N
,
GP
(
SrcReg
|
DstMem
|
ModRM
|
Mov
,
&
pfx_0f_6f_0f_7f
),
/* 0x80 - 0x8F */
/* 0x80 - 0x8F */
X16
(
D
(
SrcImm
)),
X16
(
D
(
SrcImm
)),
/* 0x90 - 0x9F */
/* 0x90 - 0x9F */
...
@@ -2654,6 +2672,7 @@ static struct opcode twobyte_table[256] = {
...
@@ -2654,6 +2672,7 @@ static struct opcode twobyte_table[256] = {
#undef G
#undef G
#undef GD
#undef GD
#undef I
#undef I
#undef GP
#undef D2bv
#undef D2bv
#undef I2bv
#undef I2bv
...
...
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