Hardcode L2 cache size for Apple M1.

This commit is contained in:
XMRig 2020-12-13 20:09:29 +07:00
parent 643142dc30
commit cc5c2c41be
No known key found for this signature in database
GPG key ID: 446A53638BE94409

View file

@ -187,6 +187,12 @@ xmrig::HwlocCpuInfo::HwlocCpuInfo()
m_nodeset.emplace_back(node->os_index);
}
}
# if defined(XMRIG_OS_MACOS) && defined(XMRIG_ARM)
if (L2() == 33554432U && m_cores == 8 && m_cores == m_threads) {
m_cache[2] = 16777216U;
}
# endif
}