Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
openeuler
qemu
提交
48b5e96f
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,发现更多精彩内容 >>
提交
48b5e96f
编写于
1月 10, 2012
作者:
E
Edgar E. Iglesias
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
microblaze: Add support for the clz insn
Signed-off-by:
N
Edgar E. Iglesias
<
edgar.iglesias@gmail.com
>
上级
2355c16e
变更
3
显示空白变更内容
内联
并排
Showing
3 changed file
with
17 addition
and
0 deletion
+17
-0
target-microblaze/helper.h
target-microblaze/helper.h
+1
-0
target-microblaze/op_helper.c
target-microblaze/op_helper.c
+5
-0
target-microblaze/translate.c
target-microblaze/translate.c
+11
-0
未找到文件。
target-microblaze/helper.h
浏览文件 @
48b5e96f
...
...
@@ -5,6 +5,7 @@ DEF_HELPER_0(debug, void)
DEF_HELPER_FLAGS_3
(
carry
,
TCG_CALL_PURE
|
TCG_CALL_CONST
,
i32
,
i32
,
i32
,
i32
)
DEF_HELPER_2
(
cmp
,
i32
,
i32
,
i32
)
DEF_HELPER_2
(
cmpu
,
i32
,
i32
,
i32
)
DEF_HELPER_FLAGS_1
(
clz
,
TCG_CALL_PURE
|
TCG_CALL_CONST
,
i32
,
i32
)
DEF_HELPER_2
(
divs
,
i32
,
i32
,
i32
)
DEF_HELPER_2
(
divu
,
i32
,
i32
,
i32
)
...
...
target-microblaze/op_helper.c
浏览文件 @
48b5e96f
...
...
@@ -165,6 +165,11 @@ uint32_t helper_cmpu(uint32_t a, uint32_t b)
return
t
;
}
uint32_t
helper_clz
(
uint32_t
t0
)
{
return
clz32
(
t0
);
}
uint32_t
helper_carry
(
uint32_t
a
,
uint32_t
b
,
uint32_t
cf
)
{
uint32_t
ncf
;
...
...
target-microblaze/translate.c
浏览文件 @
48b5e96f
...
...
@@ -809,6 +809,17 @@ static void dec_bit(DisasContext *dc)
return
;
}
break
;
case
0xe0
:
if
((
dc
->
tb_flags
&
MSR_EE_FLAG
)
&&
(
dc
->
env
->
pvr
.
regs
[
2
]
&
PVR2_ILL_OPCODE_EXC_MASK
)
&&
!
((
dc
->
env
->
pvr
.
regs
[
2
]
&
PVR2_USE_PCMP_INSTR
)))
{
tcg_gen_movi_tl
(
cpu_SR
[
SR_ESR
],
ESR_EC_ILLEGAL_OP
);
t_gen_raise_exception
(
dc
,
EXCP_HW_EXCP
);
}
if
(
dc
->
env
->
pvr
.
regs
[
2
]
&
PVR2_USE_PCMP_INSTR
)
{
gen_helper_clz
(
cpu_R
[
dc
->
rd
],
cpu_R
[
dc
->
ra
]);
}
break
;
default:
cpu_abort
(
dc
->
env
,
"unknown bit oc=%x op=%x rd=%d ra=%d rb=%d
\n
"
,
dc
->
pc
,
op
,
dc
->
rd
,
dc
->
ra
,
dc
->
rb
);
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录