Skip to content
This repository was archived by the owner on Jul 17, 2024. It is now read-only.

Commit 8f0f42b

Browse files
committed
8328709: AIX os::get_summary_cpu_info support Power 10
Backport-of: b235682a18653ab16f2d9b03b1e55698a91273b7
1 parent 083f9d1 commit 8f0f42b

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
@@ -141,7 +141,7 @@ extern "C" int getargs(procsinfo*, int, char*, int);
141141
#define ERROR_MP_VMGETINFO_FAILED 102
142142
#define ERROR_MP_VMGETINFO_CLAIMS_NO_SUPPORT_FOR_64K 103
143143

144-
// excerpts from systemcfg.h that might be missing on older os levels
144+
// excerpts from sys/systemcfg.h that might be missing on older os levels
145145
#ifndef PV_7
146146
#define PV_7 0x200000 /* Power PC 7 */
147147
#endif
@@ -160,7 +160,12 @@ extern "C" int getargs(procsinfo*, int, char*, int);
160160
#ifndef PV_9_Compat
161161
#define PV_9_Compat 0x408000 /* Power PC 9 */
162162
#endif
163-
163+
#ifndef PV_10
164+
#define PV_10 0x500000 /* Power PC 10 */
165+
#endif
166+
#ifndef PV_10_Compat
167+
#define PV_10_Compat 0x508000 /* Power PC 10 */
168+
#endif
164169

165170
static address resolve_function_descriptor_to_code_pointer(address p);
166171

@@ -1312,6 +1317,9 @@ void os::print_memory_info(outputStream* st) {
13121317
void os::get_summary_cpu_info(char* buf, size_t buflen) {
13131318
// read _system_configuration.version
13141319
switch (_system_configuration.version) {
1320+
case PV_10:
1321+
strncpy(buf, "Power PC 10", buflen);
1322+
break;
13151323
case PV_9:
13161324
strncpy(buf, "Power PC 9", buflen);
13171325
break;
@@ -1351,6 +1359,9 @@ void os::get_summary_cpu_info(char* buf, size_t buflen) {
13511359
case PV_9_Compat:
13521360
strncpy(buf, "PV_9_Compat", buflen);
13531361
break;
1362+
case PV_10_Compat:
1363+
strncpy(buf, "PV_10_Compat", buflen);
1364+
break;
13541365
default:
13551366
strncpy(buf, "unknown", buflen);
13561367
}

0 commit comments

Comments
 (0)