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
8a09b687
Commit
8a09b687
authored
Nov 27, 2008
by
Avi Kivity
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
KVM: x86 emulator: switch 'pop reg' instruction to emulate_pop()
Signed-off-by:
Avi Kivity
<
avi@redhat.com
>
parent
781d0edc
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
7 deletions
+4
-7
arch/x86/kvm/x86_emulate.c
arch/x86/kvm/x86_emulate.c
+4
-7
No files found.
arch/x86/kvm/x86_emulate.c
View file @
8a09b687
...
@@ -1389,14 +1389,11 @@ x86_emulate_insn(struct x86_emulate_ctxt *ctxt, struct x86_emulate_ops *ops)
...
@@ -1389,14 +1389,11 @@ x86_emulate_insn(struct x86_emulate_ctxt *ctxt, struct x86_emulate_ops *ops)
break
;
break
;
case
0x58
...
0x5f
:
/* pop reg */
case
0x58
...
0x5f
:
/* pop reg */
pop_instruction:
pop_instruction:
if
((
rc
=
ops
->
read_std
(
register_address
(
c
,
ss_base
(
ctxt
),
c
->
src
.
bytes
=
c
->
op_bytes
;
c
->
regs
[
VCPU_REGS_RSP
]),
c
->
dst
.
ptr
,
rc
=
emulate_pop
(
ctxt
,
ops
);
c
->
op_bytes
,
ctxt
->
vcpu
))
!=
0
)
if
(
rc
!=
0
)
goto
done
;
goto
done
;
c
->
dst
.
val
=
c
->
src
.
val
;
register_address_increment
(
c
,
&
c
->
regs
[
VCPU_REGS_RSP
],
c
->
op_bytes
);
c
->
dst
.
type
=
OP_NONE
;
/* Disable writeback. */
break
;
break
;
case
0x63
:
/* movsxd */
case
0x63
:
/* movsxd */
if
(
ctxt
->
mode
!=
X86EMUL_MODE_PROT64
)
if
(
ctxt
->
mode
!=
X86EMUL_MODE_PROT64
)
...
...
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