Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
openeuler
qemu
提交
972e35b9
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,发现更多精彩内容 >>
提交
972e35b9
编写于
8月 21, 2012
作者:
R
Richard Henderson
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
target-s390: Convert DIAGNOSE
Signed-off-by:
N
Richard Henderson
<
rth@twiddle.net
>
上级
8b5ff571
变更
2
隐藏空白更改
内联
并排
Showing
2 changed file
with
18 addition
and
17 deletion
+18
-17
target-s390x/insn-data.def
target-s390x/insn-data.def
+2
-0
target-s390x/translate.c
target-s390x/translate.c
+16
-17
未找到文件。
target-s390x/insn-data.def
浏览文件 @
972e35b9
...
...
@@ -379,6 +379,8 @@
D(0xa701, TMLL, RI_a, Z, r1_o, i2_16u_shl, 0, 0, 0, tm64, 0)
#ifndef CONFIG_USER_ONLY
/* DIAGNOSE (KVM hypercall) */
C(0x8300, DIAG, RX_a, Z, 0, 0, 0, 0, diag, 0)
/* LOAD PSW */
C(0x8200, LPSW, S, Z, 0, a2, 0, 0, lpsw, 0)
/* SET ADDRESSING MODE */
...
...
target-s390x/translate.c
浏览文件 @
972e35b9
...
...
@@ -2355,23 +2355,6 @@ static void disas_s390_insn(CPUS390XState *env, DisasContext *s)
LOG_DISAS
(
"opc 0x%x
\n
"
,
opc
);
switch
(
opc
)
{
#ifndef CONFIG_USER_ONLY
case
0x83
:
/* DIAG R1,R3,D2 [RS] */
/* Diagnose call (KVM hypercall) */
check_privileged
(
s
);
potential_page_fault
(
s
);
insn
=
ld_code4
(
env
,
s
->
pc
);
decode_rs
(
s
,
insn
,
&
r1
,
&
r3
,
&
b2
,
&
d2
);
tmp32_1
=
tcg_const_i32
(
insn
&
0xfff
);
tmp2
=
load_reg
(
2
);
tmp3
=
load_reg
(
1
);
gen_helper_diag
(
tmp2
,
cpu_env
,
tmp32_1
,
tmp2
,
tmp3
);
store_reg
(
2
,
tmp2
);
tcg_temp_free_i32
(
tmp32_1
);
tcg_temp_free_i64
(
tmp2
);
tcg_temp_free_i64
(
tmp3
);
break
;
#endif
case
0x88
:
/* SRL R1,D2(B2) [RS] */
case
0x89
:
/* SLL R1,D2(B2) [RS] */
case
0x8a
:
/* SRA R1,D2(B2) [RS] */
...
...
@@ -3327,6 +3310,22 @@ static ExitStatus op_cvd(DisasContext *s, DisasOps *o)
return
NO_EXIT
;
}
#ifndef CONFIG_USER_ONLY
static
ExitStatus
op_diag
(
DisasContext
*
s
,
DisasOps
*
o
)
{
TCGv_i32
tmp
;
check_privileged
(
s
);
potential_page_fault
(
s
);
/* We pretend the format is RX_a so that D2 is the field we want. */
tmp
=
tcg_const_i32
(
get_field
(
s
->
fields
,
d2
)
&
0xfff
);
gen_helper_diag
(
regs
[
2
],
cpu_env
,
tmp
,
regs
[
2
],
regs
[
1
]);
tcg_temp_free_i32
(
tmp
);
return
NO_EXIT
;
}
#endif
static
ExitStatus
op_divs32
(
DisasContext
*
s
,
DisasOps
*
o
)
{
gen_helper_divs32
(
o
->
out2
,
cpu_env
,
o
->
in1
,
o
->
in2
);
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录