Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
L
linux-davinci
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Redmine
Redmine
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Metrics
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
linux
linux-davinci
Commits
fb2838d4
Commit
fb2838d4
authored
Jan 14, 2009
by
Liu Yu
Committed by
Avi Kivity
Mar 24, 2009
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
KVM: ppc: Fix e500 warnings and some spelling problems
Signed-off-by:
Avi Kivity
<
avi@redhat.com
>
parent
87c656b4
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
4 additions
and
6 deletions
+4
-6
arch/powerpc/kvm/e500_emulate.c
arch/powerpc/kvm/e500_emulate.c
+0
-2
arch/powerpc/kvm/e500_tlb.c
arch/powerpc/kvm/e500_tlb.c
+3
-3
arch/powerpc/kvm/e500_tlb.h
arch/powerpc/kvm/e500_tlb.h
+1
-1
No files found.
arch/powerpc/kvm/e500_emulate.c
View file @
fb2838d4
...
@@ -30,8 +30,6 @@ int kvmppc_core_emulate_op(struct kvm_run *run, struct kvm_vcpu *vcpu,
...
@@ -30,8 +30,6 @@ int kvmppc_core_emulate_op(struct kvm_run *run, struct kvm_vcpu *vcpu,
int
emulated
=
EMULATE_DONE
;
int
emulated
=
EMULATE_DONE
;
int
ra
;
int
ra
;
int
rb
;
int
rb
;
int
rs
;
int
rt
;
switch
(
get_op
(
inst
))
{
switch
(
get_op
(
inst
))
{
case
31
:
case
31
:
...
...
arch/powerpc/kvm/e500_tlb.c
View file @
fb2838d4
...
@@ -260,7 +260,7 @@ static inline void kvmppc_e500_deliver_tlb_miss(struct kvm_vcpu *vcpu,
...
@@ -260,7 +260,7 @@ static inline void kvmppc_e500_deliver_tlb_miss(struct kvm_vcpu *vcpu,
unsigned
int
victim
,
pidsel
,
tsized
;
unsigned
int
victim
,
pidsel
,
tsized
;
int
tlbsel
;
int
tlbsel
;
/* since we only have t
ow
TLBs, only lower bit is used. */
/* since we only have t
wo
TLBs, only lower bit is used. */
tlbsel
=
(
vcpu_e500
->
mas4
>>
28
)
&
0x1
;
tlbsel
=
(
vcpu_e500
->
mas4
>>
28
)
&
0x1
;
victim
=
(
tlbsel
==
0
)
?
tlb0_get_next_victim
(
vcpu_e500
)
:
0
;
victim
=
(
tlbsel
==
0
)
?
tlb0_get_next_victim
(
vcpu_e500
)
:
0
;
pidsel
=
(
vcpu_e500
->
mas4
>>
16
)
&
0xf
;
pidsel
=
(
vcpu_e500
->
mas4
>>
16
)
&
0xf
;
...
@@ -402,7 +402,7 @@ int kvmppc_e500_emul_tlbivax(struct kvm_vcpu *vcpu, int ra, int rb)
...
@@ -402,7 +402,7 @@ int kvmppc_e500_emul_tlbivax(struct kvm_vcpu *vcpu, int ra, int rb)
ia
=
(
ea
>>
2
)
&
0x1
;
ia
=
(
ea
>>
2
)
&
0x1
;
/* since we only have t
ow
TLBs, only lower bit is used. */
/* since we only have t
wo
TLBs, only lower bit is used. */
tlbsel
=
(
ea
>>
3
)
&
0x1
;
tlbsel
=
(
ea
>>
3
)
&
0x1
;
if
(
ia
)
{
if
(
ia
)
{
...
@@ -471,7 +471,7 @@ int kvmppc_e500_emul_tlbsx(struct kvm_vcpu *vcpu, int rb)
...
@@ -471,7 +471,7 @@ int kvmppc_e500_emul_tlbsx(struct kvm_vcpu *vcpu, int rb)
}
else
{
}
else
{
int
victim
;
int
victim
;
/* since we only have t
ow
TLBs, only lower bit is used. */
/* since we only have t
wo
TLBs, only lower bit is used. */
tlbsel
=
vcpu_e500
->
mas4
>>
28
&
0x1
;
tlbsel
=
vcpu_e500
->
mas4
>>
28
&
0x1
;
victim
=
(
tlbsel
==
0
)
?
tlb0_get_next_victim
(
vcpu_e500
)
:
0
;
victim
=
(
tlbsel
==
0
)
?
tlb0_get_next_victim
(
vcpu_e500
)
:
0
;
...
...
arch/powerpc/kvm/e500_tlb.h
View file @
fb2838d4
...
@@ -126,7 +126,7 @@ static inline unsigned int get_tlb_tlbsel(
...
@@ -126,7 +126,7 @@ static inline unsigned int get_tlb_tlbsel(
{
{
/*
/*
* Manual says that tlbsel has 2 bits wide.
* Manual says that tlbsel has 2 bits wide.
* Since we only have t
ow
TLBs, only lower bit is used.
* Since we only have t
wo
TLBs, only lower bit is used.
*/
*/
return
(
vcpu_e500
->
mas0
>>
28
)
&
0x1
;
return
(
vcpu_e500
->
mas0
>>
28
)
&
0x1
;
}
}
...
...
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