1
0
mirror of https://github.com/xmrig/xmrig.git synced 2025-12-07 07:55:04 -05:00

Added Zen4 (Hawk Point) CPUs detection

This commit is contained in:
SChernykh
2025-10-15 08:05:48 +02:00
parent a659397c41
commit da5a5674b4
2 changed files with 2 additions and 2 deletions

View File

@@ -12,7 +12,7 @@ if grep -E 'AMD Ryzen|AMD EPYC|AuthenticAMD' /proc/cpuinfo > /dev/null;
then then
if grep "cpu family[[:space:]]\{1,\}:[[:space:]]25" /proc/cpuinfo > /dev/null; if grep "cpu family[[:space:]]\{1,\}:[[:space:]]25" /proc/cpuinfo > /dev/null;
then then
if grep "model[[:space:]]\{1,\}:[[:space:]]97" /proc/cpuinfo > /dev/null; if grep "model[[:space:]]\{1,\}:[[:space:]]\(97\|117\)" /proc/cpuinfo > /dev/null;
then then
echo "Detected Zen4 CPU" echo "Detected Zen4 CPU"
wrmsr -a 0xc0011020 0x4400000000000 wrmsr -a 0xc0011020 0x4400000000000

View File

@@ -250,7 +250,7 @@ xmrig::BasicCpuInfo::BasicCpuInfo() :
break; break;
case 0x19: case 0x19:
if (m_model == 0x61) { if ((m_model == 0x61) || (m_model == 0x75)) {
m_arch = ARCH_ZEN4; m_arch = ARCH_ZEN4;
m_msrMod = MSR_MOD_RYZEN_19H_ZEN4; m_msrMod = MSR_MOD_RYZEN_19H_ZEN4;
} }