Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
openanolis
dragonwell8_hotspot
提交
a5ace2a9
D
dragonwell8_hotspot
项目概览
openanolis
/
dragonwell8_hotspot
通知
2
Star
2
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
D
dragonwell8_hotspot
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
提交
a5ace2a9
编写于
11月 13, 2015
作者:
K
kshefov
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
8131778: java disables UseAES flag when using VIS=2 on sparc
Reviewed-by: iignatyev, kvn
上级
91e49be5
变更
2
隐藏空白更改
内联
并排
Showing
2 changed file
with
50 addition
and
38 deletion
+50
-38
src/cpu/sparc/vm/vm_version_sparc.cpp
src/cpu/sparc/vm/vm_version_sparc.cpp
+22
-22
src/cpu/x86/vm/vm_version_x86.cpp
src/cpu/x86/vm/vm_version_x86.cpp
+28
-16
未找到文件。
src/cpu/sparc/vm/vm_version_sparc.cpp
浏览文件 @
a5ace2a9
...
@@ -286,35 +286,35 @@ void VM_Version::initialize() {
...
@@ -286,35 +286,35 @@ void VM_Version::initialize() {
// SPARC T4 and above should have support for AES instructions
// SPARC T4 and above should have support for AES instructions
if
(
has_aes
())
{
if
(
has_aes
())
{
if
(
UseVIS
>
2
)
{
// AES intrinsics use MOVxTOd/MOVdTOx which are VIS3
if
(
FLAG_IS_DEFAULT
(
UseAES
))
{
if
(
FLAG_IS_DEFAULT
(
UseAES
))
{
FLAG_SET_DEFAULT
(
UseAES
,
true
);
FLAG_SET_DEFAULT
(
UseAES
,
true
);
}
}
if
(
!
UseAES
)
{
if
(
FLAG_IS_DEFAULT
(
UseAESIntrinsics
))
{
if
(
UseAESIntrinsics
&&
!
FLAG_IS_DEFAULT
(
UseAESIntrinsics
))
{
FLAG_SET_DEFAULT
(
UseAESIntrinsics
,
true
);
warning
(
"AES intrinsics require UseAES flag to be enabled. Intrinsics will be disabled."
);
}
// we disable both the AES flags if either of them is disabled on the command line
if
(
!
UseAES
||
!
UseAESIntrinsics
)
{
FLAG_SET_DEFAULT
(
UseAES
,
false
);
FLAG_SET_DEFAULT
(
UseAESIntrinsics
,
false
);
}
}
FLAG_SET_DEFAULT
(
UseAESIntrinsics
,
false
);
}
else
{
}
else
{
if
(
UseAES
||
UseAESIntrinsics
)
{
// The AES intrinsic stubs require AES instruction support (of course)
warning
(
"SPARC AES intrinsics require VIS3 instruction support. Intrinsics will be disabled."
);
// but also require VIS3 mode or higher for instructions it use.
if
(
UseAES
)
{
if
(
UseVIS
>
2
)
{
FLAG_SET_DEFAULT
(
UseAES
,
false
);
if
(
FLAG_IS_DEFAULT
(
UseAESIntrinsics
))
{
}
FLAG_SET_DEFAULT
(
UseAESIntrinsics
,
true
);
if
(
UseAESIntrinsics
)
{
}
FLAG_SET_DEFAULT
(
UseAESIntrinsics
,
false
);
}
else
{
}
if
(
UseAESIntrinsics
&&
!
FLAG_IS_DEFAULT
(
UseAESIntrinsics
))
{
warning
(
"SPARC AES intrinsics require VIS3 instructions. Intrinsics will be disabled."
);
}
}
FLAG_SET_DEFAULT
(
UseAESIntrinsics
,
false
);
}
}
}
}
else
if
(
UseAES
||
UseAESIntrinsics
)
{
}
else
if
(
UseAES
||
UseAESIntrinsics
)
{
warning
(
"AES instructions are not available on this CPU"
);
if
(
UseAES
&&
!
FLAG_IS_DEFAULT
(
UseAES
))
{
if
(
UseAES
)
{
warning
(
"AES instructions are not available on this CPU"
);
FLAG_SET_DEFAULT
(
UseAES
,
false
);
FLAG_SET_DEFAULT
(
UseAES
,
false
);
}
}
if
(
UseAESIntrinsics
)
{
if
(
UseAESIntrinsics
&&
!
FLAG_IS_DEFAULT
(
UseAESIntrinsics
))
{
warning
(
"AES intrinsics are not available on this CPU"
);
FLAG_SET_DEFAULT
(
UseAESIntrinsics
,
false
);
FLAG_SET_DEFAULT
(
UseAESIntrinsics
,
false
);
}
}
}
}
...
...
src/cpu/x86/vm/vm_version_x86.cpp
浏览文件 @
a5ace2a9
...
@@ -553,12 +553,36 @@ void VM_Version::get_processor_features() {
...
@@ -553,12 +553,36 @@ void VM_Version::get_processor_features() {
// Use AES instructions if available.
// Use AES instructions if available.
if
(
supports_aes
())
{
if
(
supports_aes
())
{
if
(
FLAG_IS_DEFAULT
(
UseAES
))
{
if
(
FLAG_IS_DEFAULT
(
UseAES
))
{
UseAES
=
true
;
FLAG_SET_DEFAULT
(
UseAES
,
true
)
;
}
}
}
else
if
(
UseAES
)
{
if
(
!
UseAES
)
{
if
(
!
FLAG_IS_DEFAULT
(
UseAES
))
if
(
UseAESIntrinsics
&&
!
FLAG_IS_DEFAULT
(
UseAESIntrinsics
))
{
warning
(
"AES intrinsics require UseAES flag to be enabled. Intrinsics will be disabled."
);
}
FLAG_SET_DEFAULT
(
UseAESIntrinsics
,
false
);
}
else
{
if
(
UseSSE
>
2
)
{
if
(
FLAG_IS_DEFAULT
(
UseAESIntrinsics
))
{
FLAG_SET_DEFAULT
(
UseAESIntrinsics
,
true
);
}
}
else
{
// The AES intrinsic stubs require AES instruction support (of course)
// but also require sse3 mode or higher for instructions it use.
if
(
UseAESIntrinsics
&&
!
FLAG_IS_DEFAULT
(
UseAESIntrinsics
))
{
warning
(
"X86 AES intrinsics require SSE3 instructions or higher. Intrinsics will be disabled."
);
}
FLAG_SET_DEFAULT
(
UseAESIntrinsics
,
false
);
}
}
}
else
if
(
UseAES
||
UseAESIntrinsics
)
{
if
(
UseAES
&&
!
FLAG_IS_DEFAULT
(
UseAES
))
{
warning
(
"AES instructions are not available on this CPU"
);
warning
(
"AES instructions are not available on this CPU"
);
FLAG_SET_DEFAULT
(
UseAES
,
false
);
FLAG_SET_DEFAULT
(
UseAES
,
false
);
}
if
(
UseAESIntrinsics
&&
!
FLAG_IS_DEFAULT
(
UseAESIntrinsics
))
{
warning
(
"AES intrinsics are not available on this CPU"
);
FLAG_SET_DEFAULT
(
UseAESIntrinsics
,
false
);
}
}
}
// Use CLMUL instructions if available.
// Use CLMUL instructions if available.
...
@@ -582,18 +606,6 @@ void VM_Version::get_processor_features() {
...
@@ -582,18 +606,6 @@ void VM_Version::get_processor_features() {
FLAG_SET_DEFAULT
(
UseCRC32Intrinsics
,
false
);
FLAG_SET_DEFAULT
(
UseCRC32Intrinsics
,
false
);
}
}
// The AES intrinsic stubs require AES instruction support (of course)
// but also require sse3 mode for instructions it use.
if
(
UseAES
&&
(
UseSSE
>
2
))
{
if
(
FLAG_IS_DEFAULT
(
UseAESIntrinsics
))
{
UseAESIntrinsics
=
true
;
}
}
else
if
(
UseAESIntrinsics
)
{
if
(
!
FLAG_IS_DEFAULT
(
UseAESIntrinsics
))
warning
(
"AES intrinsics are not available on this CPU"
);
FLAG_SET_DEFAULT
(
UseAESIntrinsics
,
false
);
}
// GHASH/GCM intrinsics
// GHASH/GCM intrinsics
if
(
UseCLMUL
&&
(
UseSSE
>
2
))
{
if
(
UseCLMUL
&&
(
UseSSE
>
2
))
{
if
(
FLAG_IS_DEFAULT
(
UseGHASHIntrinsics
))
{
if
(
FLAG_IS_DEFAULT
(
UseGHASHIntrinsics
))
{
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录