Skip to content

Commit

Permalink
Check for zen microarch bug on all Zen microarches
Browse files Browse the repository at this point in the history
Commit ca5c4d9 split out the Zen microarches by generation, but did not
update the check for the presence of the Zen SpecLockMap workaround.
The issue is applicable to all Zen generations, so adjust the check
accordingly.
  • Loading branch information
Keno committed Jun 4, 2024
1 parent 29e28f9 commit e883c5e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/PerfCounters_x86.h
Original file line number Diff line number Diff line change
Expand Up @@ -395,7 +395,7 @@ static void check_for_arch_bugs(perf_event_attrs &perf_attr) {
if (uarch >= IntelCometlake && uarch <= LastIntel) {
check_for_freeze_on_smi();
}
if (uarch == AMDZen) {
if (uarch >= AMDZen && uarch <= LastAMD) {
check_for_zen_speclockmap();
}
}
Expand Down

0 comments on commit e883c5e

Please sign in to comment.