Skip to content

Commit b235682

Browse files
committed
8328709: AIX os::get_summary_cpu_info support Power 10
Reviewed-by: lucy, jkern
1 parent 19a0151 commit b235682

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
@@ -138,7 +138,7 @@ extern "C" int getargs(procsinfo*, int, char*, int);
138138
#define ERROR_MP_VMGETINFO_FAILED 102
139139
#define ERROR_MP_VMGETINFO_CLAIMS_NO_SUPPORT_FOR_64K 103
140140

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

162167
static address resolve_function_descriptor_to_code_pointer(address p);
163168

@@ -1306,6 +1311,9 @@ void os::print_memory_info(outputStream* st) {
13061311
void os::get_summary_cpu_info(char* buf, size_t buflen) {
13071312
// read _system_configuration.version
13081313
switch (_system_configuration.version) {
1314+
case PV_10:
1315+
strncpy(buf, "Power PC 10", buflen);
1316+
break;
13091317
case PV_9:
13101318
strncpy(buf, "Power PC 9", buflen);
13111319
break;
@@ -1345,6 +1353,9 @@ void os::get_summary_cpu_info(char* buf, size_t buflen) {
13451353
case PV_9_Compat:
13461354
strncpy(buf, "PV_9_Compat", buflen);
13471355
break;
1356+
case PV_10_Compat:
1357+
strncpy(buf, "PV_10_Compat", buflen);
1358+
break;
13481359
default:
13491360
strncpy(buf, "unknown", buflen);
13501361
}

0 commit comments

Comments
 (0)