From e883c5edc1d8c0c2916af65fe587f5588a3d5c6c Mon Sep 17 00:00:00 2001 From: Keno Fischer Date: Tue, 4 Jun 2024 22:37:51 +0000 Subject: [PATCH] Check for zen microarch bug on all Zen microarches 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. --- src/PerfCounters_x86.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/PerfCounters_x86.h b/src/PerfCounters_x86.h index 19bf651a792..9a6ce10b19e 100644 --- a/src/PerfCounters_x86.h +++ b/src/PerfCounters_x86.h @@ -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(); } }