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
2dd7caa0
Commit
2dd7caa0
authored
Jun 11, 2012
by
Avi Kivity
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
KVM: x86 emulator: emulate LAHF
Opcode 9F. Signed-off-by:
Avi Kivity
<
avi@redhat.com
>
parent
7c068e45
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
1 deletion
+8
-1
arch/x86/kvm/emulate.c
arch/x86/kvm/emulate.c
+8
-1
No files found.
arch/x86/kvm/emulate.c
View file @
2dd7caa0
...
...
@@ -3227,6 +3227,13 @@ static int em_cpuid(struct x86_emulate_ctxt *ctxt)
return
X86EMUL_CONTINUE
;
}
static
int
em_lahf
(
struct
x86_emulate_ctxt
*
ctxt
)
{
ctxt
->
regs
[
VCPU_REGS_RAX
]
&=
~
0xff00UL
;
ctxt
->
regs
[
VCPU_REGS_RAX
]
|=
(
ctxt
->
eflags
&
0xff
)
<<
8
;
return
X86EMUL_CONTINUE
;
}
static
bool
valid_cr
(
int
nr
)
{
switch
(
nr
)
{
...
...
@@ -3622,7 +3629,7 @@ static struct opcode opcode_table[256] = {
D
(
DstAcc
|
SrcNone
),
I
(
ImplicitOps
|
SrcAcc
,
em_cwd
),
I
(
SrcImmFAddr
|
No64
,
em_call_far
),
N
,
II
(
ImplicitOps
|
Stack
,
em_pushf
,
pushf
),
II
(
ImplicitOps
|
Stack
,
em_popf
,
popf
),
N
,
N
,
II
(
ImplicitOps
|
Stack
,
em_popf
,
popf
),
N
,
I
(
ImplicitOps
,
em_lahf
)
,
/* 0xA0 - 0xA7 */
I2bv
(
DstAcc
|
SrcMem
|
Mov
|
MemAbs
,
em_mov
),
I2bv
(
DstMem
|
SrcAcc
|
Mov
|
MemAbs
|
PageTable
,
em_mov
),
...
...
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