Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
openeuler
qemu
提交
d62a4c97
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,发现更多精彩内容 >>
提交
d62a4c97
编写于
8月 24, 2012
作者:
R
Richard Henderson
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
target-s390: Convert EAR, SAR
Signed-off-by:
N
Richard Henderson
<
rth@twiddle.net
>
上级
374724f9
变更
2
隐藏空白更改
内联
并排
Showing
2 changed file
with
18 addition
and
11 deletion
+18
-11
target-s390x/insn-data.def
target-s390x/insn-data.def
+4
-0
target-s390x/translate.c
target-s390x/translate.c
+14
-11
未找到文件。
target-s390x/insn-data.def
浏览文件 @
d62a4c97
...
@@ -220,6 +220,8 @@
...
@@ -220,6 +220,8 @@
/* EXECUTE RELATIVE LONG */
/* EXECUTE RELATIVE LONG */
C(0xc600, EXRL, RIL_b, EE, r1_o, ri2, 0, 0, ex, 0)
C(0xc600, EXRL, RIL_b, EE, r1_o, ri2, 0, 0, ex, 0)
/* EXTRACT ACCESS */
C(0xb24f, EAR, RRE, Z, 0, 0, new, r1_32, ear, 0)
/* EXTRACT FPC */
/* EXTRACT FPC */
C(0xb38c, EFPC, RRE, Z, 0, 0, new, r1_32, efpc, 0)
C(0xb38c, EFPC, RRE, Z, 0, 0, new, r1_32, efpc, 0)
...
@@ -463,6 +465,8 @@
...
@@ -463,6 +465,8 @@
C(0xeb1d, RLL, RSY_a, Z, r3_o, sh32, new, r1_32, rll32, 0)
C(0xeb1d, RLL, RSY_a, Z, r3_o, sh32, new, r1_32, rll32, 0)
C(0xeb1c, RLLG, RSY_a, Z, r3_o, sh64, r1, 0, rll64, 0)
C(0xeb1c, RLLG, RSY_a, Z, r3_o, sh64, r1, 0, rll64, 0)
/* SET ACCESS */
C(0xb24e, SAR, RRE, Z, 0, r2_o, 0, 0, sar, 0)
/* SET FPC */
/* SET FPC */
C(0xb384, SFPC, RRE, Z, 0, r1_o, 0, 0, sfpc, 0)
C(0xb384, SFPC, RRE, Z, 0, r1_o, 0, 0, sfpc, 0)
...
...
target-s390x/translate.c
浏览文件 @
d62a4c97
...
@@ -1034,17 +1034,6 @@ static void disas_b2(CPUS390XState *env, DisasContext *s, int op,
...
@@ -1034,17 +1034,6 @@ static void disas_b2(CPUS390XState *env, DisasContext *s, int op,
LOG_DISAS
(
"disas_b2: op 0x%x r1 %d r2 %d
\n
"
,
op
,
r1
,
r2
);
LOG_DISAS
(
"disas_b2: op 0x%x r1 %d r2 %d
\n
"
,
op
,
r1
,
r2
);
switch
(
op
)
{
switch
(
op
)
{
case
0x4e
:
/* SAR R1,R2 [RRE] */
tmp32_1
=
load_reg32
(
r2
);
tcg_gen_st_i32
(
tmp32_1
,
cpu_env
,
offsetof
(
CPUS390XState
,
aregs
[
r1
]));
tcg_temp_free_i32
(
tmp32_1
);
break
;
case
0x4f
:
/* EAR R1,R2 [RRE] */
tmp32_1
=
tcg_temp_new_i32
();
tcg_gen_ld_i32
(
tmp32_1
,
cpu_env
,
offsetof
(
CPUS390XState
,
aregs
[
r2
]));
store_reg32
(
r1
,
tmp32_1
);
tcg_temp_free_i32
(
tmp32_1
);
break
;
case
0x54
:
/* MVPG R1,R2 [RRE] */
case
0x54
:
/* MVPG R1,R2 [RRE] */
tmp
=
load_reg
(
0
);
tmp
=
load_reg
(
0
);
tmp2
=
load_reg
(
r1
);
tmp2
=
load_reg
(
r1
);
...
@@ -2230,6 +2219,13 @@ static ExitStatus op_dxb(DisasContext *s, DisasOps *o)
...
@@ -2230,6 +2219,13 @@ static ExitStatus op_dxb(DisasContext *s, DisasOps *o)
return
NO_EXIT
;
return
NO_EXIT
;
}
}
static
ExitStatus
op_ear
(
DisasContext
*
s
,
DisasOps
*
o
)
{
int
r2
=
get_field
(
s
->
fields
,
r2
);
tcg_gen_ld32u_i64
(
o
->
out
,
cpu_env
,
offsetof
(
CPUS390XState
,
aregs
[
r2
]));
return
NO_EXIT
;
}
static
ExitStatus
op_efpc
(
DisasContext
*
s
,
DisasOps
*
o
)
static
ExitStatus
op_efpc
(
DisasContext
*
s
,
DisasOps
*
o
)
{
{
tcg_gen_ld32u_i64
(
o
->
out
,
cpu_env
,
offsetof
(
CPUS390XState
,
fpc
));
tcg_gen_ld32u_i64
(
o
->
out
,
cpu_env
,
offsetof
(
CPUS390XState
,
fpc
));
...
@@ -2864,6 +2860,13 @@ static ExitStatus op_rll64(DisasContext *s, DisasOps *o)
...
@@ -2864,6 +2860,13 @@ static ExitStatus op_rll64(DisasContext *s, DisasOps *o)
return
NO_EXIT
;
return
NO_EXIT
;
}
}
static
ExitStatus
op_sar
(
DisasContext
*
s
,
DisasOps
*
o
)
{
int
r1
=
get_field
(
s
->
fields
,
r1
);
tcg_gen_st32_i64
(
o
->
in2
,
cpu_env
,
offsetof
(
CPUS390XState
,
aregs
[
r1
]));
return
NO_EXIT
;
}
static
ExitStatus
op_seb
(
DisasContext
*
s
,
DisasOps
*
o
)
static
ExitStatus
op_seb
(
DisasContext
*
s
,
DisasOps
*
o
)
{
{
gen_helper_seb
(
o
->
out
,
cpu_env
,
o
->
in1
,
o
->
in2
);
gen_helper_seb
(
o
->
out
,
cpu_env
,
o
->
in1
,
o
->
in2
);
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录