Skip to content

Commit

Permalink
Fix for Intel Arrow Lake CPUs
Browse files Browse the repository at this point in the history
  • Loading branch information
kimwalisch committed Nov 5, 2024
1 parent e980bca commit 22f4d80
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions src/CpuInfo.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -689,6 +689,13 @@ void CpuInfo::init()
if (level >= 1 &&
level <= 3)
{
// Intel Arrow Lake CPUs have two L1 data caches. These
// caches are ordered from fastest to slowest. Since we are
// interested in the fastest L1 data cache, we only store
// the information about the first L1 data cache we find.
if (cacheSizes_[level] != 0)
continue;

std::string type = path + "/type";
std::string cacheType = getString(type);

Expand Down

0 comments on commit 22f4d80

Please sign in to comment.