Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
Linux-御风守护者
linux
提交
fb2838d4
L
linux
项目概览
Linux-御风守护者
/
linux
与 Fork 源项目一致
从无法访问的项目Fork
通知
1
Star
0
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
L
linux
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
体验新版 GitCode,发现更多精彩内容 >>
提交
fb2838d4
编写于
1月 14, 2009
作者:
L
Liu Yu
提交者:
Avi Kivity
3月 24, 2009
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
KVM: ppc: Fix e500 warnings and some spelling problems
Signed-off-by:
N
Avi Kivity
<
avi@redhat.com
>
上级
87c656b4
变更
3
隐藏空白更改
内联
并排
Showing
3 changed file
with
4 addition
and
6 deletion
+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
未找到文件。
arch/powerpc/kvm/e500_emulate.c
浏览文件 @
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
浏览文件 @
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
浏览文件 @
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
;
}
}
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录