What changed, and why it matters
This commit simply adds detection for a new AMD Zen 4 CPU variant (Hawk Point, model 0x75 / 117) to XMRig's existing CPU identification logic. It mirrors an already-supported Zen 4 model and does not change security-sensitive behavior. There is no indication of a vulnerability or security fix.
No security action required; treat as a routine hardware-compatibility update.
Security signals we found
No strong security signals were identified.
Evidence from the diff
The patch extends two CPU-model checks: in BasicCpuInfo.cpp it adds model 0x75 alongside 0x61 for the Zen 4 architecture branch, and in the randomx_boost.sh helper it adds decimal model 117 alongside 97. Both changes are additive identifications for the same AMD family 0x19 (25) Zen 4 class, enabling the same MSR tuning path already used for the existing Zen 4 model. No bounds, input parsing, or privilege logic is modified.
Changed components
src/backend/cpu/platform/BasicCpuInfo.cppscripts/randomx_boost.shInspect captured patch +2 / −2
diff --git a/scripts/randomx_boost.sh b/scripts/randomx_boost.sh
index 8580229..4181a95 100755
--- a/scripts/randomx_boost.sh
+++ b/scripts/randomx_boost.sh
@@ -12,7 +12,7 @@ if grep -E 'AMD Ryzen|AMD EPYC|AuthenticAMD' /proc/cpuinfo > /dev/null;
then
if grep "cpu family[[:space:]]\{1,\}:[[:space:]]25" /proc/cpuinfo > /dev/null;
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
echo "Detected Zen4 CPU"
wrmsr -a 0xc0011020 0x4400000000000
diff --git a/src/backend/cpu/platform/BasicCpuInfo.cpp b/src/backend/cpu/platform/BasicCpuInfo.cpp
index 30a78f8..9f5595a 100644
--- a/src/backend/cpu/platform/BasicCpuInfo.cpp
+++ b/src/backend/cpu/platform/BasicCpuInfo.cpp
@@ -250,7 +250,7 @@ xmrig::BasicCpuInfo::BasicCpuInfo() :
break;
case 0x19:
- if (m_model == 0x61) {
+ if ((m_model == 0x61) || (m_model == 0x75)) {
m_arch = ARCH_ZEN4;
m_msrMod = MSR_MOD_RYZEN_19H_ZEN4;
}
Why this scored 15/100
Community notes
Notes can correct, qualify, or add evidence to the AI analysis. Every note shown here has been validated by a human moderator.
The AI analysis stands alone for now. Submit a note if you can add evidence or important context.