Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
openeuler
qemu
提交
1c268751
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,发现更多精彩内容 >>
提交
1c268751
编写于
9月 05, 2012
作者:
R
Richard Henderson
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
target-s390: Implement COMPARE AND TRAP
Signed-off-by:
N
Richard Henderson
<
rth@twiddle.net
>
上级
403e217f
变更
2
隐藏空白更改
内联
并排
Showing
2 changed file
with
40 addition
and
0 deletion
+40
-0
target-s390x/insn-data.def
target-s390x/insn-data.def
+11
-0
target-s390x/translate.c
target-s390x/translate.c
+29
-0
未找到文件。
target-s390x/insn-data.def
浏览文件 @
1c268751
...
...
@@ -198,6 +198,17 @@
C(0xeb31, CDSY, RSY_a, LD, r1_D32, a2, new, r1_D32, cds, 0)
C(0xeb3e, CDSG, RSY_a, Z, 0, a2, 0, 0, cdsg, 0)
/* COMPARE AND TRAP */
D(0xb972, CRT, RRF_c, GIE, r1_32s, r2_32s, 0, 0, ct, 0, 0)
D(0xb960, CGRT, RRF_c, GIE, r1_o, r2_o, 0, 0, ct, 0, 0)
D(0xec72, CIT, RIE_a, GIE, r1_32s, i2, 0, 0, ct, 0, 0)
D(0xec70, CGIT, RIE_a, GIE, r1_o, i2, 0, 0, ct, 0, 0)
/* COMPARE LOGICAL AND TRAP */
D(0xb973, CLRT, RRF_c, GIE, r1_32u, r2_32u, 0, 0, ct, 0, 1)
D(0xb961, CLGRT, RRF_c, GIE, r1_o, r2_o, 0, 0, ct, 0, 1)
D(0xec73, CLFIT, RIE_a, GIE, r1_32u, i2_32u, 0, 0, ct, 0, 1)
D(0xec71, CLGIT, RIE_a, GIE, r1_o, i2_32u, 0, 0, ct, 0, 0)
/* CONVERT TO DECIMAL */
C(0x4e00, CVD, RX_a, Z, r1_o, a2, 0, 0, cvd, 0)
C(0xe326, CVDY, RXY_a, LD, r1_o, a2, 0, 0, cvd, 0)
...
...
target-s390x/translate.c
浏览文件 @
1c268751
...
...
@@ -1705,6 +1705,35 @@ static ExitStatus op_cvd(DisasContext *s, DisasOps *o)
return
NO_EXIT
;
}
static
ExitStatus
op_ct
(
DisasContext
*
s
,
DisasOps
*
o
)
{
int
m3
=
get_field
(
s
->
fields
,
m3
);
int
lab
=
gen_new_label
();
TCGv_i32
t
;
TCGCond
c
;
/* Bit 3 of the m3 field is reserved and should be zero.
Choose to ignore it wrt the ltgt_cond table above. */
c
=
tcg_invert_cond
(
ltgt_cond
[
m3
&
14
]);
if
(
s
->
insn
->
data
)
{
c
=
tcg_unsigned_cond
(
c
);
}
tcg_gen_brcond_i64
(
c
,
o
->
in1
,
o
->
in2
,
lab
);
/* Set DXC to 0xff. */
t
=
tcg_temp_new_i32
();
tcg_gen_ld_i32
(
t
,
cpu_env
,
offsetof
(
CPUS390XState
,
fpc
));
tcg_gen_ori_i32
(
t
,
t
,
0xff00
);
tcg_gen_st_i32
(
t
,
cpu_env
,
offsetof
(
CPUS390XState
,
fpc
));
tcg_temp_free_i32
(
t
);
/* Trap. */
gen_program_exception
(
s
,
PGM_DATA
);
gen_set_label
(
lab
);
return
NO_EXIT
;
}
#ifndef CONFIG_USER_ONLY
static
ExitStatus
op_diag
(
DisasContext
*
s
,
DisasOps
*
o
)
{
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录