Skip to content

Commit bdf5747

Browse files
committed
8328709: AIX os::get_summary_cpu_info support Power 10
Backport-of: b235682a18653ab16f2d9b03b1e55698a91273b7
1 parent c05f3bf commit bdf5747

File tree

1 file changed

+13
-2
lines changed

1 file changed

+13
-2
lines changed

src/hotspot/os/aix/os_aix.cpp

Lines changed: 13 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -137,7 +137,7 @@ extern "C" int getargs(procsinfo*, int, char*, int);
137137
#define ERROR_MP_VMGETINFO_FAILED 102
138138
#define ERROR_MP_VMGETINFO_CLAIMS_NO_SUPPORT_FOR_64K 103
139139

140-
// excerpts from systemcfg.h that might be missing on older os levels
140+
// excerpts from sys/systemcfg.h that might be missing on older os levels
141141
#ifndef PV_7
142142
#define PV_7 0x200000 /* Power PC 7 */
143143
#endif
@@ -156,7 +156,12 @@ extern "C" int getargs(procsinfo*, int, char*, int);
156156
#ifndef PV_9_Compat
157157
#define PV_9_Compat 0x408000 /* Power PC 9 */
158158
#endif
159-
159+
#ifndef PV_10
160+
#define PV_10 0x500000 /* Power PC 10 */
161+
#endif
162+
#ifndef PV_10_Compat
163+
#define PV_10_Compat 0x508000 /* Power PC 10 */
164+
#endif
160165

161166
static address resolve_function_descriptor_to_code_pointer(address p);
162167

@@ -1304,6 +1309,9 @@ void os::print_memory_info(outputStream* st) {
13041309
void os::get_summary_cpu_info(char* buf, size_t buflen) {
13051310
// read _system_configuration.version
13061311
switch (_system_configuration.version) {
1312+
case PV_10:
1313+
strncpy(buf, "Power PC 10", buflen);
1314+
break;
13071315
case PV_9:
13081316
strncpy(buf, "Power PC 9", buflen);
13091317
break;
@@ -1343,6 +1351,9 @@ void os::get_summary_cpu_info(char* buf, size_t buflen) {
13431351
case PV_9_Compat:
13441352
strncpy(buf, "PV_9_Compat", buflen);
13451353
break;
1354+
case PV_10_Compat:
1355+
strncpy(buf, "PV_10_Compat", buflen);
1356+
break;
13461357
default:
13471358
strncpy(buf, "unknown", buflen);
13481359
}

0 commit comments

Comments
 (0)