Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
openeuler
qemu
提交
d9370327
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看板
提交
d9370327
编写于
15年前
作者:
M
malc
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
tcg/ppc: always use tcg_out_call
Signed-off-by:
N
malc
<
av1474@comtv.ru
>
上级
de1c90cf
master
openEuler-20.03-LTS
openEuler-20.09
openEuler-RISCV
stable-0.12
stable-0.13
stable-0.14
stable-0.15
stable-1.0
stable-1.1
stable-1.2
stable-1.3
stable-1.4
stable-1.5
stable-1.6
stable-1.7
stable-2.0
stable-2.1
stable-2.10
stable-2.11
stable-2.12
stable-2.2
stable-2.3
stable-2.4
stable-2.5
stable-2.6
stable-2.7
stable-2.8
stable-2.9
stable-3.0
stable-3.1
stable-4.0
stable-4.1
stable-4.2
staging
v5.1.0-rc2
v5.1.0-rc1
v5.1.0-rc0
v5.0.0
v5.0.0-rc4
v5.0.0-rc3
v5.0.0-rc2
v5.0.0-rc1
v5.0.0-rc0
v4.2.1
v4.2.0
v4.2.0-rc5
v4.2.0-rc4
v4.2.0-rc3
v4.2.0-rc2
v4.2.0-rc1
v4.2.0-rc0
v4.1.1
v4.1.0
v4.1.0-rc5
v4.1.0-rc4
v4.1.0-rc3
v4.1.0-rc2
v4.1.0-rc1
v4.1.0-rc0
v4.0.1
v4.0.0
v4.0.0-rc4
v4.0.0-rc3
v4.0.0-rc2
v4.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rc1
v2.2.0-rc0
v2.1.3
v2.1.2
v2.1.1
v2.1.0
v2.1.0-rc5
v2.1.0-rc4
v2.1.0-rc3
v2.1.0-rc2
v2.1.0-rc1
v2.1.0-rc0
v2.0.2
v2.0.1
v2.0.0
v2.0.0-rc3
v2.0.0-rc2
v2.0.0-rc1
v2.0.0-rc0
v1.7.2
v1.7.1
v1.7.0
v1.7.0-rc2
v1.7.0-rc1
v1.7.0-rc0
v1.6.2
v1.6.1
v1.6.0
v1.6.0-rc3
v1.6.0-rc2
v1.6.0-rc1
v1.6.0-rc0
v1.5.3
v1.5.2
v1.5.1
v1.5.0
v1.5.0-rc3
v1.5.0-rc2
v1.5.0-rc1
v1.5.0-rc0
v1.4.2
v1.4.1
v1.4.0
v1.4.0-rc2
v1.4.0-rc1
v1.4.0-rc0
v1.3.1
v1.3.0
v1.3.0-rc2
v1.3.0-rc1
v1.3.0-rc0
v1.2.2
v1.2.1
v1.2.0
v1.2.0-rc3
v1.2.0-rc2
v1.2.0-rc1
v1.2.0-rc0
v1.1.2
v1.1.1
v1.1.0
v1.1.0-rc4
v1.1.0-rc3
v1.1.0-rc2
v1.1-rc2
v1.1-rc1
v1.1-rc0
v1.0.1
v1.0
v1.0-rc4
v1.0-rc3
v1.0-rc2
v1.0-rc1
v1.0-rc0
v0.15.1
v0.15.0
v0.15.0-rc2
v0.15.0-rc1
v0.15.0-rc0
v0.14.1
v0.14.0
v0.14.0-rc2
v0.14.0-rc1
v0.14.0-rc0
v0.13.0
v0.13.0-rc3
v0.13.0-rc2
v0.13.0-rc1
v0.13.0-rc0
v0.12.5
v0.12.4
v0.12.3
v0.12.2
v0.12.1
v0.12.0
v0.12.0-rc2
v0.12.0-rc1
v0.12.0-rc0
无相关合并请求
变更
1
隐藏空白更改
内联
并排
Showing
1 changed file
with
10 addition
and
20 deletion
+10
-20
tcg/ppc/tcg-target.c
tcg/ppc/tcg-target.c
+10
-20
未找到文件。
tcg/ppc/tcg-target.c
浏览文件 @
d9370327
...
...
@@ -472,9 +472,9 @@ static void tcg_out_b (TCGContext *s, int mask, tcg_target_long target)
}
}
#ifdef _AIX
static
void
tcg_out_call
(
TCGContext
*
s
,
tcg_target_long
arg
,
int
const_arg
)
{
#ifdef _AIX
int
reg
;
if
(
const_arg
)
{
...
...
@@ -487,8 +487,16 @@ static void tcg_out_call (TCGContext *s, tcg_target_long arg, int const_arg)
tcg_out32
(
s
,
MTSPR
|
RA
(
0
)
|
CTR
);
tcg_out32
(
s
,
LWZ
|
RT
(
2
)
|
RA
(
reg
)
|
4
);
tcg_out32
(
s
,
BCCTR
|
BO_ALWAYS
|
LK
);
}
#else
if
(
const_arg
)
{
tcg_out_b
(
s
,
LK
,
arg
);
}
else
{
tcg_out32
(
s
,
MTSPR
|
RS
(
arg
)
|
LR
);
tcg_out32
(
s
,
BCLR
|
BO_ALWAYS
|
LK
);
}
#endif
}
#if defined(CONFIG_SOFTMMU)
...
...
@@ -584,11 +592,7 @@ static void tcg_out_qemu_ld (TCGContext *s, const TCGArg *args, int opc)
tcg_out_movi
(
s
,
TCG_TYPE_I32
,
5
,
mem_index
);
#endif
#ifdef _AIX
tcg_out_call
(
s
,
(
tcg_target_long
)
qemu_ld_helpers
[
s_bits
],
1
);
#else
tcg_out_b
(
s
,
LK
,
(
tcg_target_long
)
qemu_ld_helpers
[
s_bits
]);
#endif
switch
(
opc
)
{
case
0
|
4
:
tcg_out32
(
s
,
EXTSB
|
RA
(
data_reg
)
|
RS
(
3
));
...
...
@@ -819,11 +823,7 @@ static void tcg_out_qemu_st (TCGContext *s, const TCGArg *args, int opc)
ir
++
;
tcg_out_movi
(
s
,
TCG_TYPE_I32
,
ir
,
mem_index
);
#ifdef _AIX
tcg_out_call
(
s
,
(
tcg_target_long
)
qemu_st_helpers
[
opc
],
1
);
#else
tcg_out_b
(
s
,
LK
,
(
tcg_target_long
)
qemu_st_helpers
[
opc
]);
#endif
label2_ptr
=
s
->
code_ptr
;
tcg_out32
(
s
,
B
);
...
...
@@ -1188,17 +1188,7 @@ static void tcg_out_op(TCGContext *s, int opc, const TCGArg *args,
}
break
;
case
INDEX_op_call
:
#ifdef _AIX
tcg_out_call
(
s
,
args
[
0
],
const_args
[
0
]);
#else
if
(
const_args
[
0
])
{
tcg_out_b
(
s
,
LK
,
args
[
0
]);
}
else
{
tcg_out32
(
s
,
MTSPR
|
RS
(
args
[
0
])
|
LR
);
tcg_out32
(
s
,
BCLR
|
BO_ALWAYS
|
LK
);
}
#endif
break
;
case
INDEX_op_jmp
:
if
(
const_args
[
0
])
{
...
...
This diff is collapsed.
Click to expand it.
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录
反馈
建议
客服
返回
顶部