Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
openeuler
qemu
提交
24db8412
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,发现更多精彩内容 >>
提交
24db8412
编写于
9月 05, 2012
作者:
R
Richard Henderson
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
target-s390: Convert LOAD ZERO
Signed-off-by:
N
Richard Henderson
<
rth@twiddle.net
>
上级
16d7b2a4
变更
4
隐藏空白更改
内联
并排
Showing
4 changed file
with
18 addition
and
40 deletion
+18
-40
target-s390x/fpu_helper.c
target-s390x/fpu_helper.c
+0
-22
target-s390x/helper.h
target-s390x/helper.h
+0
-3
target-s390x/insn-data.def
target-s390x/insn-data.def
+4
-0
target-s390x/translate.c
target-s390x/translate.c
+14
-15
未找到文件。
target-s390x/fpu_helper.c
浏览文件 @
24db8412
...
...
@@ -494,28 +494,6 @@ uint32_t HELPER(cfxbr)(CPUS390XState *env, uint32_t r1, uint32_t f2,
return
set_cc_nz_f128
(
v2
.
q
);
}
/* load 32-bit FP zero */
void
HELPER
(
lzer
)(
CPUS390XState
*
env
,
uint32_t
f1
)
{
env
->
fregs
[
f1
].
l
.
upper
=
float32_zero
;
}
/* load 64-bit FP zero */
void
HELPER
(
lzdr
)(
CPUS390XState
*
env
,
uint32_t
f1
)
{
env
->
fregs
[
f1
].
d
=
float64_zero
;
}
/* load 128-bit FP zero */
void
HELPER
(
lzxr
)(
CPUS390XState
*
env
,
uint32_t
f1
)
{
CPU_QuadU
x
;
x
.
q
=
float64_to_float128
(
float64_zero
,
&
env
->
fpu_status
);
env
->
fregs
[
f1
].
ll
=
x
.
ll
.
upper
;
env
->
fregs
[
f1
+
1
].
ll
=
x
.
ll
.
lower
;
}
/* 32-bit FP multiply and add */
uint64_t
HELPER
(
maeb
)(
CPUS390XState
*
env
,
uint64_t
f1
,
uint64_t
f2
,
uint64_t
f3
)
...
...
target-s390x/helper.h
浏览文件 @
24db8412
...
...
@@ -62,9 +62,6 @@ DEF_HELPER_FLAGS_5(cxb, TCG_CALL_NO_WG_SE, i32, env, i64, i64, i64, i64)
DEF_HELPER_4
(
cgebr
,
i32
,
env
,
i32
,
i32
,
i32
)
DEF_HELPER_4
(
cgdbr
,
i32
,
env
,
i32
,
i32
,
i32
)
DEF_HELPER_4
(
cgxbr
,
i32
,
env
,
i32
,
i32
,
i32
)
DEF_HELPER_2
(
lzer
,
void
,
env
,
i32
)
DEF_HELPER_2
(
lzdr
,
void
,
env
,
i32
)
DEF_HELPER_2
(
lzxr
,
void
,
env
,
i32
)
DEF_HELPER_4
(
cfebr
,
i32
,
env
,
i32
,
i32
,
i32
)
DEF_HELPER_4
(
cfdbr
,
i32
,
env
,
i32
,
i32
,
i32
)
DEF_HELPER_4
(
cfxbr
,
i32
,
env
,
i32
,
i32
,
i32
)
...
...
target-s390x/insn-data.def
浏览文件 @
24db8412
...
...
@@ -329,6 +329,10 @@
C(0xe31f, LRVH, RXY_a, Z, 0, m2_16u, new, r1_16, rev16, 0)
C(0xe31e, LRV, RXY_a, Z, 0, m2_32u, new, r1_32, rev32, 0)
C(0xe30f, LRVG, RXY_a, Z, 0, m2_64, r1, 0, rev64, 0)
/* LOAD ZERO */
C(0xb374, LZER, RRE, Z, 0, 0, 0, e1, zero, 0)
C(0xb375, LZDR, RRE, Z, 0, 0, 0, f1, zero, 0)
C(0xb376, LZXR, RRE, Z, 0, 0, 0, x1, zero2, 0)
/* LOAD LENGTHENED */
C(0xb304, LDEBR, RRE, Z, 0, e2, f1, 0, ldeb, 0)
...
...
target-s390x/translate.c
浏览文件 @
24db8412
...
...
@@ -1385,21 +1385,6 @@ static void disas_b3(CPUS390XState *env, DisasContext *s, int op, int m3,
tcg_temp_free_i32(tmp32_2);
switch
(
op
)
{
case
0x74
:
/* LZER R1 [RRE] */
tmp32_1
=
tcg_const_i32
(
r1
);
gen_helper_lzer
(
cpu_env
,
tmp32_1
);
tcg_temp_free_i32
(
tmp32_1
);
break
;
case
0x75
:
/* LZDR R1 [RRE] */
tmp32_1
=
tcg_const_i32
(
r1
);
gen_helper_lzdr
(
cpu_env
,
tmp32_1
);
tcg_temp_free_i32
(
tmp32_1
);
break
;
case
0x76
:
/* LZXR R1 [RRE] */
tmp32_1
=
tcg_const_i32
(
r1
);
gen_helper_lzxr
(
cpu_env
,
tmp32_1
);
tcg_temp_free_i32
(
tmp32_1
);
break
;
case
0x84
:
/* SFPC R1 [RRE] */
tmp32_1
=
load_reg32
(
r1
);
tcg_gen_st_i32
(
tmp32_1
,
cpu_env
,
offsetof
(
CPUS390XState
,
fpc
));
...
...
@@ -3310,6 +3295,20 @@ static ExitStatus op_xori(DisasContext *s, DisasOps *o)
return
NO_EXIT
;
}
static
ExitStatus
op_zero
(
DisasContext
*
s
,
DisasOps
*
o
)
{
o
->
out
=
tcg_const_i64
(
0
);
return
NO_EXIT
;
}
static
ExitStatus
op_zero2
(
DisasContext
*
s
,
DisasOps
*
o
)
{
o
->
out
=
tcg_const_i64
(
0
);
o
->
out2
=
o
->
out
;
o
->
g_out2
=
true
;
return
NO_EXIT
;
}
/* ====================================================================== */
/* The "Cc OUTput" generators. Given the generated output (and in some cases
the original inputs), update the various cc data structures in order to
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录