mirror of
https://github.com/xmrig/xmrig.git
synced 2024-12-22 19:49:36 +00:00
Fix: --randomx-wrmsr=-1
worked only on Intel
This commit is contained in:
parent
fc643e2936
commit
c62622b114
1 changed files with 4 additions and 2 deletions
|
@ -256,10 +256,12 @@ void xmrig::RxConfig::readMSR(const rapidjson::Value &value)
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (value.IsInt() && Cpu::info()->vendor() == ICpuInfo::VENDOR_INTEL) {
|
if (value.IsInt()) {
|
||||||
const int i = std::min(value.GetInt(), 15);
|
const int i = std::min(value.GetInt(), 15);
|
||||||
if (i >= 0) {
|
if (i >= 0) {
|
||||||
m_msrPreset.emplace_back(0x1a4, i);
|
if (Cpu::info()->vendor() == ICpuInfo::VENDOR_INTEL) {
|
||||||
|
m_msrPreset.emplace_back(0x1a4, i);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
m_wrmsr = false;
|
m_wrmsr = false;
|
||||||
|
|
Loading…
Reference in a new issue