Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
openeuler
qemu
提交
2576d836
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看板
提交
2576d836
编写于
11月 09, 2008
作者:
B
blueswir1
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Use TCG not op
git-svn-id:
svn://svn.savannah.nongnu.org/qemu/trunk@5663
c046a42c-6fe2-441c-8c8c-71466251a162
上级
81b5b816
变更
1
隐藏空白更改
内联
并排
Showing
1 changed file
with
12 addition
and
14 deletion
+12
-14
target-sparc/translate.c
target-sparc/translate.c
+12
-14
未找到文件。
target-sparc/translate.c
浏览文件 @
2576d836
...
...
@@ -363,7 +363,7 @@ static inline void gen_cc_V_add_icc(TCGv dst, TCGv src1, TCGv src2)
r_temp
=
tcg_temp_new
(
TCG_TYPE_TL
);
tcg_gen_xor_tl
(
r_temp
,
src1
,
src2
);
tcg_gen_
xori_tl
(
r_temp
,
r_temp
,
-
1
);
tcg_gen_
not_tl
(
r_temp
,
r_temp
);
tcg_gen_xor_tl
(
cpu_tmp0
,
src1
,
dst
);
tcg_gen_and_tl
(
r_temp
,
r_temp
,
cpu_tmp0
);
tcg_gen_andi_tl
(
r_temp
,
r_temp
,
(
1ULL
<<
31
));
...
...
@@ -380,7 +380,7 @@ static inline void gen_cc_V_add_xcc(TCGv dst, TCGv src1, TCGv src2)
r_temp
=
tcg_temp_new
(
TCG_TYPE_TL
);
tcg_gen_xor_tl
(
r_temp
,
src1
,
src2
);
tcg_gen_
xori_tl
(
r_temp
,
r_temp
,
-
1
);
tcg_gen_
not_tl
(
r_temp
,
r_temp
);
tcg_gen_xor_tl
(
cpu_tmp0
,
src1
,
dst
);
tcg_gen_and_tl
(
r_temp
,
r_temp
,
cpu_tmp0
);
tcg_gen_andi_tl
(
r_temp
,
r_temp
,
(
1ULL
<<
63
));
...
...
@@ -400,7 +400,7 @@ static inline void gen_add_tv(TCGv dst, TCGv src1, TCGv src2)
r_temp
=
tcg_temp_new
(
TCG_TYPE_TL
);
tcg_gen_xor_tl
(
r_temp
,
src1
,
src2
);
tcg_gen_
xori_tl
(
r_temp
,
r_temp
,
-
1
);
tcg_gen_
not_tl
(
r_temp
,
r_temp
);
tcg_gen_xor_tl
(
cpu_tmp0
,
src1
,
dst
);
tcg_gen_and_tl
(
r_temp
,
r_temp
,
cpu_tmp0
);
tcg_gen_andi_tl
(
r_temp
,
r_temp
,
(
1ULL
<<
31
));
...
...
@@ -3089,7 +3089,7 @@ static void disas_sparc_insn(DisasContext * dc)
gen_op_logic_cc
(
cpu_dst
);
break
;
case
0x7
:
tcg_gen_
xori_tl
(
cpu_tmp0
,
cpu_src2
,
-
1
);
tcg_gen_
not_tl
(
cpu_tmp0
,
cpu_src2
);
tcg_gen_xor_tl
(
cpu_dst
,
cpu_src1
,
cpu_tmp0
);
if
(
xop
&
0x10
)
gen_op_logic_cc
(
cpu_dst
);
...
...
@@ -3928,14 +3928,13 @@ static void disas_sparc_insn(DisasContext * dc)
break
;
case
0x066
:
/* VIS I fnot2 */
CHECK_FPU_FEATURE
(
dc
,
VIS1
);
tcg_gen_xori_i32
(
cpu_fpr
[
DFPREG
(
rd
)],
cpu_fpr
[
DFPREG
(
rs2
)],
-
1
);
tcg_gen_xori_i32
(
cpu_fpr
[
DFPREG
(
rd
)
+
1
],
cpu_fpr
[
DFPREG
(
rs2
)
+
1
],
-
1
);
tcg_gen_not_i32
(
cpu_fpr
[
DFPREG
(
rd
)],
cpu_fpr
[
DFPREG
(
rs2
)]);
tcg_gen_not_i32
(
cpu_fpr
[
DFPREG
(
rd
)
+
1
],
cpu_fpr
[
DFPREG
(
rs2
)
+
1
]);
break
;
case
0x067
:
/* VIS I fnot2s */
CHECK_FPU_FEATURE
(
dc
,
VIS1
);
tcg_gen_
xori_i32
(
cpu_fpr
[
rd
],
cpu_fpr
[
rs2
],
-
1
);
tcg_gen_
not_i32
(
cpu_fpr
[
rd
],
cpu_fpr
[
rs2
]
);
break
;
case
0x068
:
/* VIS I fandnot1 */
CHECK_FPU_FEATURE
(
dc
,
VIS1
);
...
...
@@ -3951,14 +3950,13 @@ static void disas_sparc_insn(DisasContext * dc)
break
;
case
0x06a
:
/* VIS I fnot1 */
CHECK_FPU_FEATURE
(
dc
,
VIS1
);
tcg_gen_xori_i32
(
cpu_fpr
[
DFPREG
(
rd
)],
cpu_fpr
[
DFPREG
(
rs1
)],
-
1
);
tcg_gen_xori_i32
(
cpu_fpr
[
DFPREG
(
rd
)
+
1
],
cpu_fpr
[
DFPREG
(
rs1
)
+
1
],
-
1
);
tcg_gen_not_i32
(
cpu_fpr
[
DFPREG
(
rd
)],
cpu_fpr
[
DFPREG
(
rs1
)]);
tcg_gen_not_i32
(
cpu_fpr
[
DFPREG
(
rd
)
+
1
],
cpu_fpr
[
DFPREG
(
rs1
)
+
1
]);
break
;
case
0x06b
:
/* VIS I fnot1s */
CHECK_FPU_FEATURE
(
dc
,
VIS1
);
tcg_gen_
xori_i32
(
cpu_fpr
[
rd
],
cpu_fpr
[
rs1
],
-
1
);
tcg_gen_
not_i32
(
cpu_fpr
[
rd
],
cpu_fpr
[
rs1
]
);
break
;
case
0x06c
:
/* VIS I fxor */
CHECK_FPU_FEATURE
(
dc
,
VIS1
);
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录