Skip to content

Commit

Permalink
Detect AMD Zen 5 microarchitecture
Browse files Browse the repository at this point in the history
  • Loading branch information
fbarchard committed Nov 14, 2024
1 parent 8df4496 commit 68af19c
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 0 deletions.
2 changes: 2 additions & 0 deletions include/cpuinfo.h
Original file line number Diff line number Diff line change
Expand Up @@ -419,6 +419,8 @@ enum cpuinfo_uarch {
cpuinfo_uarch_zen3 = 0x0020010B,
/** AMD Zen 4 microarchitecture. */
cpuinfo_uarch_zen4 = 0x0020010C,
/** AMD Zen 5 microarchitecture. */
cpuinfo_uarch_zen5 = 0x0020010D,

/** NSC Geode and AMD Geode GX and LX. */
cpuinfo_uarch_geode = 0x00200200,
Expand Down
2 changes: 2 additions & 0 deletions src/x86/uarch.c
Original file line number Diff line number Diff line change
Expand Up @@ -387,6 +387,8 @@ enum cpuinfo_uarch cpuinfo_x86_decode_uarch(
return cpuinfo_uarch_zen4;
}
break;
case 0x1a:
return cpuinfo_uarch_zen5;
}
break;
case cpuinfo_vendor_hygon:
Expand Down
2 changes: 2 additions & 0 deletions tools/cpu-info.c
Original file line number Diff line number Diff line change
Expand Up @@ -132,6 +132,8 @@ static const char* uarch_to_string(enum cpuinfo_uarch uarch) {
return "Zen 3";
case cpuinfo_uarch_zen4:
return "Zen 4";
case cpuinfo_uarch_zen5:
return "Zen 5";
case cpuinfo_uarch_geode:
return "Geode";
case cpuinfo_uarch_bobcat:
Expand Down

0 comments on commit 68af19c

Please sign in to comment.