Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
openeuler
qemu
提交
b9836c1a
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,发现更多精彩内容 >>
提交
b9836c1a
编写于
8月 20, 2012
作者:
R
Richard Henderson
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
target-s390: Convert SUPERVISOR CALL
Signed-off-by:
N
Richard Henderson
<
rth@twiddle.net
>
上级
d9a39927
变更
2
显示空白变更内容
内联
并排
Showing
2 changed file
with
22 addition
and
15 deletion
+22
-15
target-s390x/insn-data.def
target-s390x/insn-data.def
+3
-0
target-s390x/translate.c
target-s390x/translate.c
+19
-15
未找到文件。
target-s390x/insn-data.def
浏览文件 @
b9836c1a
...
...
@@ -337,6 +337,9 @@
C(0xe399, SLB, RXY_a, Z, r1, m2_32u, new, r1_32, subb, subb32)
C(0xe389, SLBG, RXY_a, Z, r1, m2_64, r1, 0, subb, subb64)
/* SUPERVISOR CALL */
C(0x0a00, SVC, I, Z, 0, 0, 0, 0, svc, 0)
/* TEST UNDER MASK */
C(0x9100, TM, SI, Z, m1_8u, i2_8u, 0, 0, 0, tm32)
C(0xeb51, TMY, SIY, LD, m1_8u, i2_8u, 0, 0, 0, tm32)
...
...
target-s390x/translate.c
浏览文件 @
b9836c1a
...
...
@@ -2371,21 +2371,6 @@ static void disas_s390_insn(CPUS390XState *env, DisasContext *s)
LOG_DISAS
(
"opc 0x%x
\n
"
,
opc
);
switch
(
opc
)
{
case
0xa
:
/* SVC I [RR] */
insn
=
ld_code2
(
env
,
s
->
pc
);
debug_insn
(
insn
);
i
=
insn
&
0xff
;
update_psw_addr
(
s
);
gen_op_calc_cc
(
s
);
tmp32_1
=
tcg_const_i32
(
i
);
tmp32_2
=
tcg_const_i32
(
s
->
next_pc
-
s
->
pc
);
tcg_gen_st_i32
(
tmp32_1
,
cpu_env
,
offsetof
(
CPUS390XState
,
int_svc_code
));
tcg_gen_st_i32
(
tmp32_2
,
cpu_env
,
offsetof
(
CPUS390XState
,
int_svc_ilen
));
gen_exception
(
EXCP_SVC
);
s
->
is_jmp
=
DISAS_EXCP
;
tcg_temp_free_i32
(
tmp32_1
);
tcg_temp_free_i32
(
tmp32_2
);
break
;
case
0xe
:
/* MVCL R1,R2 [RR] */
insn
=
ld_code2
(
env
,
s
->
pc
);
decode_rr
(
s
,
insn
,
&
r1
,
&
r2
);
...
...
@@ -3717,6 +3702,25 @@ static ExitStatus op_subb(DisasContext *s, DisasOps *o)
return
NO_EXIT
;
}
static
ExitStatus
op_svc
(
DisasContext
*
s
,
DisasOps
*
o
)
{
TCGv_i32
t
;
update_psw_addr
(
s
);
gen_op_calc_cc
(
s
);
t
=
tcg_const_i32
(
get_field
(
s
->
fields
,
i1
)
&
0xff
);
tcg_gen_st_i32
(
t
,
cpu_env
,
offsetof
(
CPUS390XState
,
int_svc_code
));
tcg_temp_free_i32
(
t
);
t
=
tcg_const_i32
(
s
->
next_pc
-
s
->
pc
);
tcg_gen_st_i32
(
t
,
cpu_env
,
offsetof
(
CPUS390XState
,
int_svc_ilen
));
tcg_temp_free_i32
(
t
);
gen_exception
(
EXCP_SVC
);
return
EXIT_NORETURN
;
}
static
ExitStatus
op_xor
(
DisasContext
*
s
,
DisasOps
*
o
)
{
tcg_gen_xor_i64
(
o
->
out
,
o
->
in1
,
o
->
in2
);
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录