1
0
Fork 0
mirror of https://github.com/anrieff/libcpuid synced 2024-11-10 22:59:13 +00:00

DB: add Intel Alder Lake-HX

Refer to https://en.wikipedia.org/wiki/Alder_Lake#Alder_Lake-HX
This commit is contained in:
The Tumultuous Unicorn Of Darkness 2022-12-31 12:04:12 +01:00
parent d984d4389f
commit 44bde9877a
No known key found for this signature in database
GPG key ID: 1E55EE2EFF18BC1A
3 changed files with 1738 additions and 10 deletions

View file

@ -123,6 +123,9 @@ enum _intel_bits_t {
_I_ = LBIT( 13 ), _I_ = LBIT( 13 ),
XEON_ = LBIT( 14 ), XEON_ = LBIT( 14 ),
ATOM_ = LBIT( 15 ), ATOM_ = LBIT( 15 ),
_H = LBIT( 16 ),
_K = LBIT( 17 ),
_X = LBIT( 18 ),
}; };
typedef enum _intel_bits_t intel_bits_t; typedef enum _intel_bits_t intel_bits_t;

View file

@ -444,6 +444,9 @@ const struct match_entry_t cpudb_intel[] = {
{ 6, 7, -1, -1, 151, -1, -1, -1, NC, CORE_|_I_|_3 , _12xxx, "Alder Lake-S (Core i3)" }, { 6, 7, -1, -1, 151, -1, -1, -1, NC, CORE_|_I_|_3 , _12xxx, "Alder Lake-S (Core i3)" },
{ 6, 7, -1, -1, 151, -1, -1, -1, NC, PENTIUM_ , 0, "Alder Lake-S (Pentium)" }, { 6, 7, -1, -1, 151, -1, -1, -1, NC, PENTIUM_ , 0, "Alder Lake-S (Pentium)" },
{ 6, 7, -1, -1, 151, -1, -1, -1, NC, CELERON_ , 0, "Alder Lake-S (Celeron)" }, { 6, 7, -1, -1, 151, -1, -1, -1, NC, CELERON_ , 0, "Alder Lake-S (Celeron)" },
{ 6, 7, -1, -1, 151, -1, -1, -1, NC, CORE_|_I_|_9|_H|_X, _12xxx, "Alder Lake-HX (Core i9)" },
{ 6, 7, -1, -1, 151, -1, -1, -1, NC, CORE_|_I_|_7|_H|_X, _12xxx, "Alder Lake-HX (Core i7)" },
{ 6, 7, -1, -1, 151, -1, -1, -1, NC, CORE_|_I_|_5|_H|_X, _12xxx, "Alder Lake-HX (Core i5)" },
{ 6, 10, -1, -1, 154, -1, -1, -1, NC, CORE_|_I_|_9 , _12xxx, "Alder Lake-P (Core i9)" }, { 6, 10, -1, -1, 154, -1, -1, -1, NC, CORE_|_I_|_9 , _12xxx, "Alder Lake-P (Core i9)" },
{ 6, 10, -1, -1, 154, -1, -1, -1, NC, CORE_|_I_|_7 , _12xxx, "Alder Lake-P (Core i7)" }, { 6, 10, -1, -1, 154, -1, -1, -1, NC, CORE_|_I_|_7 , _12xxx, "Alder Lake-P (Core i7)" },
{ 6, 10, -1, -1, 154, -1, -1, -1, NC, CORE_|_I_|_5 , _12xxx, "Alder Lake-P (Core i5)" }, { 6, 10, -1, -1, 154, -1, -1, -1, NC, CORE_|_I_|_5 , _12xxx, "Alder Lake-P (Core i5)" },
@ -688,6 +691,7 @@ static intel_code_and_bits_t get_brand_code_and_bits(struct cpu_id_t* data)
int i = 0; int i = 0;
const char* bs = data->brand_str; const char* bs = data->brand_str;
const char* s; const char* s;
const size_t n = strlen(bs);
const struct { intel_code_t c; const char *search; } matchtable[] = { const struct { intel_code_t c; const char *search; } matchtable[] = {
{ PENTIUM_M, "Pentium(R) M" }, { PENTIUM_M, "Pentium(R) M" },
{ CORE_SOLO, "Pentium(R) Dual CPU" }, { CORE_SOLO, "Pentium(R) Dual CPU" },
@ -728,6 +732,13 @@ static intel_code_and_bits_t get_brand_code_and_bits(struct cpu_id_t* data)
case '7': bits |= _7; break; case '7': bits |= _7; break;
case '9': bits |= _9; break; case '9': bits |= _9; break;
} }
for(i = i + 11; i < n; i++) {
switch (bs[i]) {
case 'H': bits |= _H; break;
case 'K': bits |= _K; break;
case 'X': bits |= _X; break;
}
}
} }
for (i = 0; i < COUNT_OF(matchtable); i++) for (i = 0; i < COUNT_OF(matchtable); i++)
if (match_pattern(bs, matchtable[i].search)) { if (match_pattern(bs, matchtable[i].search)) {

File diff suppressed because it is too large Load diff