Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
openeuler
qemu
提交
6e764e97
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,发现更多精彩内容 >>
提交
6e764e97
编写于
8月 21, 2012
作者:
R
Richard Henderson
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
target-s390: Convert EXECUTE
Signed-off-by:
N
Richard Henderson
<
rth@twiddle.net
>
上级
58a9e35b
变更
2
隐藏空白更改
内联
并排
Showing
2 changed file
with
31 addition
and
13 deletion
+31
-13
target-s390x/insn-data.def
target-s390x/insn-data.def
+5
-0
target-s390x/translate.c
target-s390x/translate.c
+26
-13
未找到文件。
target-s390x/insn-data.def
浏览文件 @
6e764e97
...
...
@@ -157,6 +157,11 @@
D(0xc006, XIHF, RIL_a, EI, r1_o, i2_32u, r1, 0, xori, 0, 0x2020)
D(0xc007, XILF, RIL_a, EI, r1_o, i2_32u, r1, 0, xori, 0, 0x2000)
/* EXECUTE */
C(0x4400, EX, RX_a, Z, r1_o, a2, 0, 0, ex, 0)
/* EXECUTE RELATIVE LONG */
C(0xc600, EXRL, RIL_b, EE, r1_o, ri2, 0, 0, ex, 0)
/* INSERT CHARACTER */
C(0x4300, IC, RX_a, Z, 0, m2_8u, 0, r1_8, mov2, 0)
C(0xe373, ICY, RXY_a, LD, 0, m2_8u, 0, r1_8, mov2, 0)
...
...
target-s390x/translate.c
浏览文件 @
6e764e97
...
...
@@ -2355,19 +2355,6 @@ static void disas_s390_insn(CPUS390XState *env, DisasContext *s)
LOG_DISAS
(
"opc 0x%x
\n
"
,
opc
);
switch
(
opc
)
{
case
0x44
:
/* EX R1,D2(X2,B2) [RX] */
insn
=
ld_code4
(
env
,
s
->
pc
);
tmp
=
decode_rx
(
s
,
insn
,
&
r1
,
&
x2
,
&
b2
,
&
d2
);
tmp2
=
load_reg
(
r1
);
tmp3
=
tcg_const_i64
(
s
->
pc
+
4
);
update_psw_addr
(
s
);
gen_op_calc_cc
(
s
);
gen_helper_ex
(
cc_op
,
cpu_env
,
cc_op
,
tmp2
,
tmp
,
tmp3
);
set_cc_static
(
s
);
tcg_temp_free_i64
(
tmp
);
tcg_temp_free_i64
(
tmp2
);
tcg_temp_free_i64
(
tmp3
);
break
;
case
0x4e
:
/* CVD R1,D2(X2,B2) [RX] */
insn
=
ld_code4
(
env
,
s
->
pc
);
tmp
=
decode_rx
(
s
,
insn
,
&
r1
,
&
x2
,
&
b2
,
&
d2
);
...
...
@@ -3423,6 +3410,32 @@ static ExitStatus op_divu64(DisasContext *s, DisasOps *o)
return
NO_EXIT
;
}
static
ExitStatus
op_ex
(
DisasContext
*
s
,
DisasOps
*
o
)
{
/* ??? Perhaps a better way to implement EXECUTE is to set a bit in
tb->flags, (ab)use the tb->cs_base field as the address of
the template in memory, and grab 8 bits of tb->flags/cflags for
the contents of the register. We would then recognize all this
in gen_intermediate_code_internal, generating code for exactly
one instruction. This new TB then gets executed normally.
On the other hand, this seems to be mostly used for modifying
MVC inside of memcpy, which needs a helper call anyway. So
perhaps this doesn't bear thinking about any further. */
TCGv_i64
tmp
;
update_psw_addr
(
s
);
gen_op_calc_cc
(
s
);
tmp
=
tcg_const_i64
(
s
->
next_pc
);
gen_helper_ex
(
cc_op
,
cpu_env
,
cc_op
,
o
->
in1
,
o
->
in2
,
tmp
);
tcg_temp_free_i64
(
tmp
);
set_cc_static
(
s
);
return
NO_EXIT
;
}
static
ExitStatus
op_icm
(
DisasContext
*
s
,
DisasOps
*
o
)
{
int
m3
=
get_field
(
s
->
fields
,
m3
);
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录