Skip to content

Commit f01ce87

Browse files
authored
Add missing ARM-Cortex uarchs (#335)
* Add A720, 725 and X4 identifiers * Add the X4 successor as well * Add enumerators
1 parent 10a95e8 commit f01ce87

File tree

3 files changed

+24
-0
lines changed

3 files changed

+24
-0
lines changed

include/cpuinfo.h

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -510,6 +510,8 @@ enum cpuinfo_uarch {
510510
cpuinfo_uarch_cortex_x3 = 0x00300503,
511511
/** ARM Cortex-X4. */
512512
cpuinfo_uarch_cortex_x4 = 0x00300504,
513+
/** ARM Cortex-X925. */
514+
cpuinfo_uarch_cortex_x925 = 0x00300505,
513515

514516
/** ARM Cortex-A510. */
515517
cpuinfo_uarch_cortex_a510 = 0x00300551,
@@ -521,6 +523,8 @@ enum cpuinfo_uarch {
521523
cpuinfo_uarch_cortex_a715 = 0x00300572,
522524
/** ARM Cortex-A720. */
523525
cpuinfo_uarch_cortex_a720 = 0x00300573,
526+
/** ARM Cortex-A725. */
527+
cpuinfo_uarch_cortex_a725 = 0x00300574,
524528

525529
/** Qualcomm Scorpion. */
526530
cpuinfo_uarch_scorpion = 0x00400100,

src/arm/uarch.c

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -125,6 +125,18 @@ void cpuinfo_arm_decode_vendor_uarch(
125125
case 0xD4F: /* Neoverse V2 */
126126
*uarch = cpuinfo_uarch_neoverse_v2;
127127
break;
128+
case 0xD81: /* Cortex-A720 */
129+
*uarch = cpuinfo_uarch_cortex_a720;
130+
break;
131+
case 0xD82: /* Cortex-X4 */
132+
*uarch = cpuinfo_uarch_cortex_x4;
133+
break;
134+
case 0xD85: /* Cortex-X925 */
135+
*uarch = cpuinfo_uarch_cortex_x925;
136+
break;
137+
case 0xD87: /* Cortex-A725 */
138+
*uarch = cpuinfo_uarch_cortex_a725;
139+
break;
128140
default:
129141
switch (midr_get_part(midr) >> 8) {
130142
#if CPUINFO_ARCH_ARM

tools/cpu-info.c

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -206,12 +206,20 @@ static const char* uarch_to_string(enum cpuinfo_uarch uarch) {
206206
return "Cortex-A710";
207207
case cpuinfo_uarch_cortex_a715:
208208
return "Cortex-A715";
209+
case cpuinfo_uarch_cortex_a720:
210+
return "Cortex-A720";
211+
case cpuinfo_uarch_cortex_a725:
212+
return "Cortex-A725";
209213
case cpuinfo_uarch_cortex_x1:
210214
return "Cortex-X1";
211215
case cpuinfo_uarch_cortex_x2:
212216
return "Cortex-X2";
213217
case cpuinfo_uarch_cortex_x3:
214218
return "Cortex-X3";
219+
case cpuinfo_uarch_cortex_x4:
220+
return "Cortex-X4";
221+
case cpuinfo_uarch_cortex_x925:
222+
return "Cortex-X925";
215223
case cpuinfo_uarch_neoverse_n1:
216224
return "Neoverse N1";
217225
case cpuinfo_uarch_neoverse_e1:

0 commit comments

Comments
 (0)