Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
openanolis
dragonwell8_hotspot
提交
5da9b68d
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看板
提交
5da9b68d
编写于
8月 01, 2012
作者:
K
kvn
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
7188227: VM should recognize M-series SPARC
Summary: Check kstat data for SPARC-M. Reviewed-by: roland
上级
c0e5b398
变更
2
显示空白变更内容
内联
并排
Showing
2 changed file
with
19 addition
and
6 deletion
+19
-6
src/cpu/sparc/vm/vm_version_sparc.hpp
src/cpu/sparc/vm/vm_version_sparc.hpp
+8
-5
src/os_cpu/solaris_sparc/vm/vm_version_solaris_sparc.cpp
src/os_cpu/solaris_sparc/vm/vm_version_solaris_sparc.cpp
+11
-1
未找到文件。
src/cpu/sparc/vm/vm_version_sparc.hpp
浏览文件 @
5da9b68d
...
...
@@ -44,10 +44,11 @@ protected:
fmaf_instructions
=
10
,
fmau_instructions
=
11
,
vis3_instructions
=
12
,
sparc64_family
=
13
,
T_family
=
14
,
T1_model
=
15
,
cbcond_instructions
=
16
cbcond_instructions
=
13
,
sparc64_family
=
14
,
M_family
=
15
,
T_family
=
16
,
T1_model
=
17
};
enum
Feature_Flag_Set
{
...
...
@@ -67,10 +68,11 @@ protected:
fmaf_instructions_m
=
1
<<
fmaf_instructions
,
fmau_instructions_m
=
1
<<
fmau_instructions
,
vis3_instructions_m
=
1
<<
vis3_instructions
,
cbcond_instructions_m
=
1
<<
cbcond_instructions
,
sparc64_family_m
=
1
<<
sparc64_family
,
M_family_m
=
1
<<
M_family
,
T_family_m
=
1
<<
T_family
,
T1_model_m
=
1
<<
T1_model
,
cbcond_instructions_m
=
1
<<
cbcond_instructions
,
generic_v8_m
=
v8_instructions_m
|
hardware_mul32_m
|
hardware_div32_m
|
hardware_fsmuld_m
,
generic_v9_m
=
generic_v8_m
|
v9_instructions_m
,
...
...
@@ -89,6 +91,7 @@ protected:
static
int
platform_features
(
int
features
);
// Returns true if the platform is in the niagara line (T series)
static
bool
is_M_family
(
int
features
)
{
return
(
features
&
M_family_m
)
!=
0
;
}
static
bool
is_T_family
(
int
features
)
{
return
(
features
&
T_family_m
)
!=
0
;
}
static
bool
is_niagara
()
{
return
is_T_family
(
_features
);
}
DEBUG_ONLY
(
static
bool
is_niagara
(
int
features
)
{
return
(
features
&
sun4v_m
)
!=
0
;
}
)
...
...
src/os_cpu/solaris_sparc/vm/vm_version_solaris_sparc.cpp
浏览文件 @
5da9b68d
...
...
@@ -201,13 +201,23 @@ int VM_Version::platform_features(int features) {
impl
[
i
]
=
(
char
)
toupper
((
uint
)
impl
[
i
]);
if
(
strstr
(
impl
,
"SPARC64"
)
!=
NULL
)
{
features
|=
sparc64_family_m
;
}
else
if
(
strstr
(
impl
,
"SPARC-M"
)
!=
NULL
)
{
// M-series SPARC is based on T-series.
features
|=
(
M_family_m
|
T_family_m
);
}
else
if
(
strstr
(
impl
,
"SPARC-T"
)
!=
NULL
)
{
features
|=
T_family_m
;
if
(
strstr
(
impl
,
"SPARC-T1"
)
!=
NULL
)
{
features
|=
T1_model_m
;
}
}
else
{
assert
(
strstr
(
impl
,
"SPARC"
)
!=
NULL
,
"should be sparc"
);
if
(
strstr
(
impl
,
"SPARC"
)
==
NULL
)
{
#ifndef PRODUCT
// kstat on Solaris 8 virtual machines (branded zones)
// returns "(unsupported)" implementation.
warning
(
"kstat cpu_info implementation = '%s', should contain SPARC"
,
impl
);
#endif
implementation
=
"SPARC"
;
}
}
free
((
void
*
)
impl
);
break
;
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录