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

Allow number value for "wrmsr" option only for Intel.

This commit is contained in:
XMRig
2019-12-19 03:28:05 +07:00
parent 12fb27e2cf
commit 3e3d34b3ce

View File

@@ -243,7 +243,7 @@ void xmrig::RxConfig::readMSR(const rapidjson::Value &value)
return;
}
if (value.IsInt()) {
if (value.IsInt() && Cpu::info()->vendor() == ICpuInfo::VENDOR_INTEL) {
const int i = std::min(value.GetInt(), 15);
if (i >= 0) {
m_msrPreset.emplace_back(0x1a4, i);