Skip to content

Commit 8b2aa51

Browse files
Suchismith Royoffamitkumar
authored andcommitted
8349780: AIX os::get_summary_cpu_info support Power 11
Reviewed-by: stuefe, amitkumar
1 parent 650d0d9 commit 8b2aa51

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

src/hotspot/os/aix/os_aix.cpp

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -164,6 +164,12 @@ extern "C" int getargs(procsinfo*, int, char*, int);
164164
#ifndef PV_10_Compat
165165
#define PV_10_Compat 0x508000 /* Power PC 10 */
166166
#endif
167+
#ifndef PV_11
168+
#define PV_11 0x600000 /* Power PC 11 */
169+
#endif
170+
#ifndef PV_11_Compat
171+
#define PV_11_Compat 0x608000 /* Power PC 11 */
172+
#endif
167173

168174
static address resolve_function_descriptor_to_code_pointer(address p);
169175

@@ -1219,6 +1225,9 @@ void os::print_memory_info(outputStream* st) {
12191225
void os::get_summary_cpu_info(char* buf, size_t buflen) {
12201226
// read _system_configuration.version
12211227
switch (_system_configuration.version) {
1228+
case PV_11:
1229+
strncpy(buf, "Power PC 11", buflen);
1230+
break;
12221231
case PV_10:
12231232
strncpy(buf, "Power PC 10", buflen);
12241233
break;
@@ -1264,6 +1273,9 @@ void os::get_summary_cpu_info(char* buf, size_t buflen) {
12641273
case PV_10_Compat:
12651274
strncpy(buf, "PV_10_Compat", buflen);
12661275
break;
1276+
case PV_11_Compat:
1277+
strncpy(buf, "PV_11_Compat", buflen);
1278+
break;
12671279
default:
12681280
strncpy(buf, "unknown", buflen);
12691281
}

0 commit comments

Comments
 (0)