Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
openeuler
qemu
提交
38f81dc5
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,发现更多精彩内容 >>
提交
38f81dc5
编写于
4月 26, 2017
作者:
R
Richard Henderson
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
tcg/sparc: Implement goto_ptr
Signed-off-by:
N
Richard Henderson
<
rth@twiddle.net
>
上级
b19f0c2e
变更
2
显示空白变更内容
内联
并排
Showing
2 changed file
with
11 addition
and
2 deletion
+11
-2
tcg/sparc/tcg-target.h
tcg/sparc/tcg-target.h
+1
-1
tcg/sparc/tcg-target.inc.c
tcg/sparc/tcg-target.inc.c
+10
-1
未找到文件。
tcg/sparc/tcg-target.h
浏览文件 @
38f81dc5
...
...
@@ -123,7 +123,7 @@ extern bool use_vis3_instructions;
#define TCG_TARGET_HAS_muls2_i32 1
#define TCG_TARGET_HAS_muluh_i32 0
#define TCG_TARGET_HAS_mulsh_i32 0
#define TCG_TARGET_HAS_goto_ptr
0
#define TCG_TARGET_HAS_goto_ptr
1
#define TCG_TARGET_HAS_extrl_i64_i32 1
#define TCG_TARGET_HAS_extrh_i64_i32 1
...
...
tcg/sparc/tcg-target.inc.c
浏览文件 @
38f81dc5
...
...
@@ -1003,7 +1003,11 @@ static void tcg_target_qemu_prologue(TCGContext *s)
/* delay slot */
tcg_out_nop
(
s
);
/* No epilogue required. We issue ret + restore directly in the TB. */
/* Epilogue for goto_ptr. */
s
->
code_gen_epilogue
=
s
->
code_ptr
;
tcg_out_arithi
(
s
,
TCG_REG_G0
,
TCG_REG_I7
,
8
,
RETURN
);
/* delay slot */
tcg_out_movi_imm13
(
s
,
TCG_REG_O0
,
0
);
#ifdef CONFIG_SOFTMMU
build_trampolines
(
s
);
...
...
@@ -1288,6 +1292,10 @@ static void tcg_out_op(TCGContext *s, TCGOpcode opc,
tcg_out_nop
(
s
);
s
->
tb_jmp_reset_offset
[
a0
]
=
tcg_current_code_size
(
s
);
break
;
case
INDEX_op_goto_ptr
:
tcg_out_arithi
(
s
,
TCG_REG_G0
,
a0
,
0
,
JMPL
);
tcg_out_nop
(
s
);
break
;
case
INDEX_op_br
:
tcg_out_bpcc
(
s
,
COND_A
,
BPCC_PT
,
arg_label
(
a0
));
tcg_out_nop
(
s
);
...
...
@@ -1513,6 +1521,7 @@ static const TCGTargetOpDef sparc_op_defs[] = {
{
INDEX_op_exit_tb
,
{
}
},
{
INDEX_op_goto_tb
,
{
}
},
{
INDEX_op_br
,
{
}
},
{
INDEX_op_goto_ptr
,
{
"r"
}
},
{
INDEX_op_ld8u_i32
,
{
"r"
,
"r"
}
},
{
INDEX_op_ld8s_i32
,
{
"r"
,
"r"
}
},
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录