Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
openeuler
qemu
提交
411fea3d
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,发现更多精彩内容 >>
提交
411fea3d
编写于
8月 24, 2012
作者:
R
Richard Henderson
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
target-s390: Convert STAP
Signed-off-by:
N
Richard Henderson
<
rth@twiddle.net
>
上级
e805a0d3
变更
2
显示空白变更内容
内联
并排
Showing
2 changed file
with
12 addition
and
14 deletion
+12
-14
target-s390x/insn-data.def
target-s390x/insn-data.def
+2
-0
target-s390x/translate.c
target-s390x/translate.c
+10
-14
未找到文件。
target-s390x/insn-data.def
浏览文件 @
411fea3d
...
...
@@ -658,6 +658,8 @@
/* STORE CONTROL */
C(0xb600, STCTL, RS_a, Z, 0, a2, 0, 0, stctl, 0)
C(0xeb25, STCTG, RSY_a, Z, 0, a2, 0, 0, stctg, 0)
/* STORE CPU ADDRESS */
C(0xb212, STAP, S, Z, la2, 0, new, m1_16, stap, 0)
/* STORE CPU ID */
C(0xb202, STIDP, S, Z, la2, 0, new, m1_64, stidp, 0)
/* STORE CPU TIMER */
...
...
target-s390x/translate.c
浏览文件 @
411fea3d
...
...
@@ -1033,20 +1033,6 @@ static void disas_b2(CPUS390XState *env, DisasContext *s, int op,
LOG_DISAS
(
"disas_b2: op 0x%x r1 %d r2 %d
\n
"
,
op
,
r1
,
r2
);
switch
(
op
)
{
case
0x12
:
/* STAP D2(B2) [S] */
/* Store CPU Address */
check_privileged
(
s
);
decode_rs
(
s
,
insn
,
&
r1
,
&
r3
,
&
b2
,
&
d2
);
tmp
=
get_address
(
s
,
0
,
b2
,
d2
);
tmp2
=
tcg_temp_new_i64
();
tmp32_1
=
tcg_temp_new_i32
();
tcg_gen_ld_i32
(
tmp32_1
,
cpu_env
,
offsetof
(
CPUS390XState
,
cpu_num
));
tcg_gen_extu_i32_i64
(
tmp2
,
tmp32_1
);
tcg_gen_qemu_st32
(
tmp2
,
tmp
,
get_mem_index
(
s
));
tcg_temp_free_i64
(
tmp
);
tcg_temp_free_i64
(
tmp2
);
tcg_temp_free_i32
(
tmp32_1
);
break
;
case
0x21
:
/* IPTE R1,R2 [RRE] */
/* Invalidate PTE */
check_privileged
(
s
);
...
...
@@ -2859,6 +2845,16 @@ static ExitStatus op_ssm(DisasContext *s, DisasOps *o)
return
NO_EXIT
;
}
static
ExitStatus
op_stap
(
DisasContext
*
s
,
DisasOps
*
o
)
{
check_privileged
(
s
);
/* ??? Surely cpu address != cpu number. In any case the previous
version of this stored more than the required half-word, so it
is unlikely this has ever been tested. */
tcg_gen_ld32u_i64
(
o
->
out
,
cpu_env
,
offsetof
(
CPUS390XState
,
cpu_num
));
return
NO_EXIT
;
}
static
ExitStatus
op_stck
(
DisasContext
*
s
,
DisasOps
*
o
)
{
gen_helper_stck
(
o
->
out
,
cpu_env
);
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录