disable prefetch by default

- allow to disable prefetch on systems without hardware aes
- set default disable memory prefetch
This commit is contained in:
psychocrypt
2017-04-22 23:27:07 +02:00
parent 741bee2e2f
commit 865ee48f9a
2 changed files with 5 additions and 6 deletions
+2 -2
View File
@@ -139,9 +139,9 @@ bool jconf::GetThreadConfig(size_t id, thd_cfg &cfg)
cfg.bDoubleMode = mode->GetBool();
cfg.bNoPrefetch = no_prefetch->GetBool();
if(!bHaveAes && (cfg.bDoubleMode || cfg.bNoPrefetch))
if(!bHaveAes && cfg.bDoubleMode)
{
printer::inst()->print_msg(L0, "Invalid thread confg - low_power_mode and no_prefetch are unsupported on CPUs without AES-NI.");
printer::inst()->print_msg(L0, "Invalid thread confg - low_power_mode are unsupported on CPUs without AES-NI.");
return false;
}