Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
openeuler
qemu
提交
128b52e8
Q
qemu
项目概览
openeuler
/
qemu
通知
10
Star
0
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
Q
qemu
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
体验新版 GitCode,发现更多精彩内容 >>
提交
128b52e8
编写于
9月 12, 2017
作者:
P
Paolo Bonzini
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
target/i386: fix "info mem" for LA57 mode
Signed-off-by:
N
Paolo Bonzini
<
pbonzini@redhat.com
>
上级
8e1fe175
变更
1
显示空白变更内容
内联
并排
Showing
1 changed file
with
4 addition
and
4 deletion
+4
-4
target/i386/monitor.c
target/i386/monitor.c
+4
-4
未找到文件。
target/i386/monitor.c
浏览文件 @
128b52e8
...
@@ -447,7 +447,7 @@ static void mem_info_la57(Monitor *mon, CPUArchState *env)
...
@@ -447,7 +447,7 @@ static void mem_info_la57(Monitor *mon, CPUArchState *env)
start
=
-
1
;
start
=
-
1
;
for
(
l0
=
0
;
l0
<
512
;
l0
++
)
{
for
(
l0
=
0
;
l0
<
512
;
l0
++
)
{
cpu_physical_memory_read
(
pml5_addr
+
l0
*
8
,
&
pml5e
,
8
);
cpu_physical_memory_read
(
pml5_addr
+
l0
*
8
,
&
pml5e
,
8
);
pml
4
e
=
le64_to_cpu
(
pml5e
);
pml
5
e
=
le64_to_cpu
(
pml5e
);
end
=
l0
<<
48
;
end
=
l0
<<
48
;
if
(
!
(
pml5e
&
PG_PRESENT_MASK
))
{
if
(
!
(
pml5e
&
PG_PRESENT_MASK
))
{
prot
=
0
;
prot
=
0
;
...
@@ -480,7 +480,7 @@ static void mem_info_la57(Monitor *mon, CPUArchState *env)
...
@@ -480,7 +480,7 @@ static void mem_info_la57(Monitor *mon, CPUArchState *env)
if
(
pdpe
&
PG_PSE_MASK
)
{
if
(
pdpe
&
PG_PSE_MASK
)
{
prot
=
pdpe
&
(
PG_USER_MASK
|
PG_RW_MASK
|
prot
=
pdpe
&
(
PG_USER_MASK
|
PG_RW_MASK
|
PG_PRESENT_MASK
);
PG_PRESENT_MASK
);
prot
&=
pml4e
;
prot
&=
pml
5e
&
pml
4e
;
mem_print
(
mon
,
&
start
,
&
last_prot
,
end
,
prot
);
mem_print
(
mon
,
&
start
,
&
last_prot
,
end
,
prot
);
continue
;
continue
;
}
}
...
@@ -499,7 +499,7 @@ static void mem_info_la57(Monitor *mon, CPUArchState *env)
...
@@ -499,7 +499,7 @@ static void mem_info_la57(Monitor *mon, CPUArchState *env)
if
(
pde
&
PG_PSE_MASK
)
{
if
(
pde
&
PG_PSE_MASK
)
{
prot
=
pde
&
(
PG_USER_MASK
|
PG_RW_MASK
|
prot
=
pde
&
(
PG_USER_MASK
|
PG_RW_MASK
|
PG_PRESENT_MASK
);
PG_PRESENT_MASK
);
prot
&=
pml4e
&
pdpe
;
prot
&=
pml
5e
&
pml
4e
&
pdpe
;
mem_print
(
mon
,
&
start
,
&
last_prot
,
end
,
prot
);
mem_print
(
mon
,
&
start
,
&
last_prot
,
end
,
prot
);
continue
;
continue
;
}
}
...
@@ -513,7 +513,7 @@ static void mem_info_la57(Monitor *mon, CPUArchState *env)
...
@@ -513,7 +513,7 @@ static void mem_info_la57(Monitor *mon, CPUArchState *env)
if
(
pte
&
PG_PRESENT_MASK
)
{
if
(
pte
&
PG_PRESENT_MASK
)
{
prot
=
pte
&
(
PG_USER_MASK
|
PG_RW_MASK
|
prot
=
pte
&
(
PG_USER_MASK
|
PG_RW_MASK
|
PG_PRESENT_MASK
);
PG_PRESENT_MASK
);
prot
&=
pml4e
&
pdpe
&
pde
;
prot
&=
pml
5e
&
pml
4e
&
pdpe
&
pde
;
}
else
{
}
else
{
prot
=
0
;
prot
=
0
;
}
}
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录