Add Haven v3 support (#134)

This commit is contained in:
Ben Gräf 2018-06-14 21:22:21 +02:00 committed by GitHub
parent ae15b9f5ac
commit 3ecda3e63a
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
7 changed files with 466 additions and 402 deletions

View file

@ -282,7 +282,8 @@ constexpr static const char *pow_variant_names[] = {
"ipbc",
"alloy",
"xtl",
"msr"
"msr",
"xhv"
};
Options *Options::parse(int argc, char **argv)
@ -1028,6 +1029,11 @@ bool Options::parsePowVariant(const char *powVariant)
break;
}
if (i == ARRAY_SIZE(pow_variant_names) - 1 && !strcmp(powVariant, "haven")) {
m_powVariant = POW_XHV;
break;
}
if (i == ARRAY_SIZE(pow_variant_names) - 1) {
showUsage(1);
return false;