1
0
mirror of https://github.com/xmrig/xmrig.git synced 2025-12-16 11:12:47 -05:00

Fixed MSR mod names in JSON API

This commit is contained in:
SChernykh
2020-11-14 19:55:43 +01:00
parent 3bbe3fa481
commit 9a1e867da2
3 changed files with 4 additions and 2 deletions

View File

@@ -55,6 +55,8 @@ public:
MSR_MOD_MAX
};
# define MSR_NAMES_LIST "none", "ryzen_17h", "ryzen_19h", "intel", "custom"
enum Flag : uint32_t {
FLAG_AES,
FLAG_AVX2,

View File

@@ -53,7 +53,7 @@ namespace xmrig {
static const std::array<const char *, ICpuInfo::FLAG_MAX> flagNames = { "aes", "avx2", "avx512f", "bmi2", "osxsave", "pdpe1gb", "sse2", "ssse3", "sse4.1", "xop", "popcnt", "cat_l3" };
static const std::array<const char *, ICpuInfo::MSR_MOD_MAX> msrNames = { "none", "ryzen", "intel", "custom" };
static const std::array<const char *, ICpuInfo::MSR_MOD_MAX> msrNames = { MSR_NAMES_LIST };
static inline void cpuid(uint32_t level, int32_t output[4])