Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
openeuler
qemu
提交
42774a56
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,发现更多精彩内容 >>
提交
42774a56
编写于
3月 19, 2014
作者:
R
Richard Henderson
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
target-alpha: Convert ARITH3_EX to source/sink
Signed-off-by:
N
Richard Henderson
<
rth@twiddle.net
>
上级
95868348
变更
1
隐藏空白更改
内联
并排
Showing
1 changed file
with
6 addition
and
43 deletion
+6
-43
target-alpha/translate.c
target-alpha/translate.c
+6
-43
未找到文件。
target-alpha/translate.c
浏览文件 @
42774a56
...
...
@@ -1457,43 +1457,6 @@ ARITH3(maxuw4)
ARITH3
(
maxsw4
)
ARITH3
(
perr
)
/* Code to call arith3 helpers */
#define ARITH3_EX(name) \
static inline void glue(gen_, name)(int ra, int rb, int rc, \
int islit, uint8_t lit) \
{ \
if (unlikely(rc == 31)) { \
return; \
} \
if (ra != 31) { \
if (islit) { \
TCGv tmp = tcg_const_i64(lit); \
gen_helper_ ## name(cpu_ir[rc], cpu_env, \
cpu_ir[ra], tmp); \
tcg_temp_free(tmp); \
} else { \
gen_helper_ ## name(cpu_ir[rc], cpu_env, \
cpu_ir[ra], cpu_ir[rb]); \
} \
} else { \
TCGv tmp1 = tcg_const_i64(0); \
if (islit) { \
TCGv tmp2 = tcg_const_i64(lit); \
gen_helper_ ## name(cpu_ir[rc], cpu_env, tmp1, tmp2); \
tcg_temp_free(tmp2); \
} else { \
gen_helper_ ## name(cpu_ir[rc], cpu_env, tmp1, cpu_ir[rb]); \
} \
tcg_temp_free(tmp1); \
} \
}
ARITH3_EX
(
addlv
)
ARITH3_EX
(
sublv
)
ARITH3_EX
(
addqv
)
ARITH3_EX
(
subqv
)
ARITH3_EX
(
mullv
)
ARITH3_EX
(
mulqv
)
#define MVIOP2(name) \
static inline void glue(gen_, name)(int rb, int rc) \
{ \
...
...
@@ -2032,11 +1995,11 @@ static ExitStatus translate_one(DisasContext *ctx, uint32_t insn)
break
;
case
0x40
:
/* ADDL/V */
gen_
addlv
(
ra
,
rb
,
rc
,
islit
,
lit
);
gen_
helper_addlv
(
vc
,
cpu_env
,
va
,
vb
);
break
;
case
0x49
:
/* SUBL/V */
gen_
sublv
(
ra
,
rb
,
rc
,
islit
,
lit
);
gen_
helper_sublv
(
vc
,
cpu_env
,
va
,
vb
);
break
;
case
0x4D
:
/* CMPLT */
...
...
@@ -2044,11 +2007,11 @@ static ExitStatus translate_one(DisasContext *ctx, uint32_t insn)
break
;
case
0x60
:
/* ADDQ/V */
gen_
addqv
(
ra
,
rb
,
rc
,
islit
,
lit
);
gen_
helper_addqv
(
vc
,
cpu_env
,
va
,
vb
);
break
;
case
0x69
:
/* SUBQ/V */
gen_
subqv
(
ra
,
rb
,
rc
,
islit
,
lit
);
gen_
helper_subqv
(
vc
,
cpu_env
,
va
,
vb
);
break
;
case
0x6D
:
/* CMPLE */
...
...
@@ -2321,11 +2284,11 @@ static ExitStatus translate_one(DisasContext *ctx, uint32_t insn)
break
;
case
0x40
:
/* MULL/V */
gen_
mullv
(
ra
,
rb
,
rc
,
islit
,
lit
);
gen_
helper_mullv
(
vc
,
cpu_env
,
va
,
vb
);
break
;
case
0x60
:
/* MULQ/V */
gen_
mulqv
(
ra
,
rb
,
rc
,
islit
,
lit
);
gen_
helper_mulqv
(
vc
,
cpu_env
,
va
,
vb
);
break
;
default:
goto
invalid_opc
;
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录