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
No known key found for this signature in database
GPG key ID: 446A53638BE94409

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);