Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
openeuler
qemu
提交
5550359f
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,发现更多精彩内容 >>
提交
5550359f
编写于
8月 31, 2012
作者:
R
Richard Henderson
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
target-s390: Implement COMPARE AND BRANCH
Signed-off-by:
N
Richard Henderson
<
rth@twiddle.net
>
上级
7a6c7067
变更
2
隐藏空白更改
内联
并排
Showing
2 changed file
with
47 addition
and
0 deletion
+47
-0
target-s390x/insn-data.def
target-s390x/insn-data.def
+19
-0
target-s390x/translate.c
target-s390x/translate.c
+28
-0
未找到文件。
target-s390x/insn-data.def
浏览文件 @
5550359f
...
...
@@ -166,6 +166,25 @@
/* COMPARE LOGICAL STRING */
C(0xb25d, CLST, RRE, Z, r1_o, r2_o, 0, 0, clst, 0)
/* COMPARE AND BRANCH */
D(0xecf6, CRB, RRS, GIE, r1_32s, r2_32s, 0, 0, cj, 0, 0)
D(0xece4, CGRB, RRS, GIE, r1_o, r2_o, 0, 0, cj, 0, 0)
D(0xec76, CRJ, RIE_b, GIE, r1_32s, r2_32s, 0, 0, cj, 0, 0)
D(0xec64, CGRJ, RIE_b, GIE, r1_o, r2_o, 0, 0, cj, 0, 0)
D(0xecfe, CIB, RIS, GIE, r1_32s, i2, 0, 0, cj, 0, 0)
D(0xecfc, CGIB, RIS, GIE, r1_o, i2, 0, 0, cj, 0, 0)
D(0xec7e, CIJ, RIE_c, GIE, r1_32s, i2, 0, 0, cj, 0, 0)
D(0xec7c, CGIJ, RIE_c, GIE, r1_o, i2, 0, 0, cj, 0, 0)
/* COMPARE LOGICAL AND BRANCH */
D(0xecf7, CLRB, RRS, GIE, r1_32u, r2_32u, 0, 0, cj, 0, 1)
D(0xece5, CLGRB, RRS, GIE, r1_o, r2_o, 0, 0, cj, 0, 1)
D(0xec77, CLRJ, RIE_b, GIE, r1_32u, r2_32u, 0, 0, cj, 0, 1)
D(0xec65, CLGRJ, RIE_b, GIE, r1_o, r2_o, 0, 0, cj, 0, 1)
D(0xecff, CLIB, RIS, GIE, r1_32u, i2_8u, 0, 0, cj, 0, 1)
D(0xecfd, CLGIB, RIS, GIE, r1_o, i2_8u, 0, 0, cj, 0, 1)
D(0xec7f, CLIJ, RIE_c, GIE, r1_32u, i2_8u, 0, 0, cj, 0, 1)
D(0xec7d, CLGIJ, RIE_c, GIE, r1_o, i2_8u, 0, 0, cj, 0, 1)
/* COMPARE AND SWAP */
C(0xba00, CS, RS_a, Z, r1_o, a2, new, r1_32, cs, 0)
C(0xeb14, CSY, RSY_a, LD, r1_o, a2, new, r1_32, cs, 0)
...
...
target-s390x/translate.c
浏览文件 @
5550359f
...
...
@@ -1427,6 +1427,34 @@ static ExitStatus op_bx64(DisasContext *s, DisasOps *o)
return
help_branch
(
s
,
&
c
,
is_imm
,
imm
,
o
->
in2
);
}
static
ExitStatus
op_cj
(
DisasContext
*
s
,
DisasOps
*
o
)
{
int
imm
,
m3
=
get_field
(
s
->
fields
,
m3
);
bool
is_imm
;
DisasCompare
c
;
/* Bit 3 of the m3 field is reserved and should be zero.
Choose to ignore it wrt the ltgt_cond table above. */
c
.
cond
=
ltgt_cond
[
m3
&
14
];
if
(
s
->
insn
->
data
)
{
c
.
cond
=
tcg_unsigned_cond
(
c
.
cond
);
}
c
.
is_64
=
c
.
g1
=
c
.
g2
=
true
;
c
.
u
.
s64
.
a
=
o
->
in1
;
c
.
u
.
s64
.
b
=
o
->
in2
;
is_imm
=
have_field
(
s
->
fields
,
i4
);
if
(
is_imm
)
{
imm
=
get_field
(
s
->
fields
,
i4
);
}
else
{
imm
=
0
;
o
->
out
=
get_address
(
s
,
0
,
get_field
(
s
->
fields
,
b4
),
get_field
(
s
->
fields
,
d4
));
}
return
help_branch
(
s
,
&
c
,
is_imm
,
imm
,
o
->
out
);
}
static
ExitStatus
op_ceb
(
DisasContext
*
s
,
DisasOps
*
o
)
{
gen_helper_ceb
(
cc_op
,
cpu_env
,
o
->
in1
,
o
->
in2
);
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录