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
56697687
Commit
56697687
authored
Apr 03, 2011
by
Avi Kivity
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
KVM: x86 emulator: move desc_limit_scaled()
For reuse later. Signed-off-by:
Avi Kivity
<
avi@redhat.com
>
parent
52fd8b44
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
7 deletions
+7
-7
arch/x86/kvm/emulate.c
arch/x86/kvm/emulate.c
+7
-7
No files found.
arch/x86/kvm/emulate.c
View file @
56697687
...
...
@@ -464,6 +464,13 @@ static inline void jmp_rel(struct decode_cache *c, int rel)
register_address_increment
(
c
,
&
c
->
eip
,
rel
);
}
static
u32
desc_limit_scaled
(
struct
desc_struct
*
desc
)
{
u32
limit
=
get_desc_limit
(
desc
);
return
desc
->
g
?
(
limit
<<
12
)
|
0xfff
:
limit
;
}
static
void
set_seg_override
(
struct
decode_cache
*
c
,
int
seg
)
{
c
->
has_seg_override
=
true
;
...
...
@@ -1040,13 +1047,6 @@ static int pio_in_emulated(struct x86_emulate_ctxt *ctxt,
return
1
;
}
static
u32
desc_limit_scaled
(
struct
desc_struct
*
desc
)
{
u32
limit
=
get_desc_limit
(
desc
);
return
desc
->
g
?
(
limit
<<
12
)
|
0xfff
:
limit
;
}
static
void
get_descriptor_table_ptr
(
struct
x86_emulate_ctxt
*
ctxt
,
struct
x86_emulate_ops
*
ops
,
u16
selector
,
struct
desc_ptr
*
dt
)
...
...
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