mirror of
https://github.com/openjdk/jdk.git
synced 2026-07-30 12:50:11 +00:00
8349780: AIX os::get_summary_cpu_info support Power 11
Reviewed-by: stuefe, amitkumar
This commit is contained in:
parent
650d0d954e
commit
8b2aa51b0c
@ -164,6 +164,12 @@ extern "C" int getargs(procsinfo*, int, char*, int);
|
||||
#ifndef PV_10_Compat
|
||||
#define PV_10_Compat 0x508000 /* Power PC 10 */
|
||||
#endif
|
||||
#ifndef PV_11
|
||||
#define PV_11 0x600000 /* Power PC 11 */
|
||||
#endif
|
||||
#ifndef PV_11_Compat
|
||||
#define PV_11_Compat 0x608000 /* Power PC 11 */
|
||||
#endif
|
||||
|
||||
static address resolve_function_descriptor_to_code_pointer(address p);
|
||||
|
||||
@ -1219,6 +1225,9 @@ void os::print_memory_info(outputStream* st) {
|
||||
void os::get_summary_cpu_info(char* buf, size_t buflen) {
|
||||
// read _system_configuration.version
|
||||
switch (_system_configuration.version) {
|
||||
case PV_11:
|
||||
strncpy(buf, "Power PC 11", buflen);
|
||||
break;
|
||||
case PV_10:
|
||||
strncpy(buf, "Power PC 10", buflen);
|
||||
break;
|
||||
@ -1264,6 +1273,9 @@ void os::get_summary_cpu_info(char* buf, size_t buflen) {
|
||||
case PV_10_Compat:
|
||||
strncpy(buf, "PV_10_Compat", buflen);
|
||||
break;
|
||||
case PV_11_Compat:
|
||||
strncpy(buf, "PV_11_Compat", buflen);
|
||||
break;
|
||||
default:
|
||||
strncpy(buf, "unknown", buflen);
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user