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

DB: add AMD Ryzen Z1

This commit is contained in:
The Tumultuous Unicorn Of Darkness 2023-09-24 11:41:18 +02:00
parent 764607faa0
commit ede3b8ca9e
No known key found for this signature in database
GPG key ID: 1E55EE2EFF18BC1A
3 changed files with 1009 additions and 1 deletions

View file

@ -165,6 +165,7 @@ enum _amd_bits_t {
_FX = LBIT( 25 ),
_APU_ = LBIT( 26 ),
C86_ = LBIT( 27 ),
_Z = LBIT( 28 ),
};
typedef enum _amd_bits_t amd_bits_t;

View file

@ -362,6 +362,7 @@ const struct match_entry_t cpudb_amd[] = {
{ 15, -1, -1, 25, 116, -1, -1, -1, NC, RYZEN_|_5|_H , 0, "Ryzen 5 (Phoenix)" },
{ 15, -1, -1, 25, 116, -1, -1, -1, NC, RYZEN_|_5|_U , 0, "Ryzen 5 (Phoenix)" },
{ 15, -1, -1, 25, 116, -1, -1, -1, NC, RYZEN_|_3|_U , 0, "Ryzen 3 (Phoenix)" },
{ 15, -1, -1, 25, 116, -1, -1, -1, NC, RYZEN_|_Z , 0, "Ryzen Z1 (Phoenix)" },
/* F M S EF EM #cores L2$ L3$ BC ModelBits ModelCode Name */
};
@ -567,7 +568,7 @@ static struct amd_code_and_bits_t decode_amd_codename_part1(const char *bs)
if (amd_has_turion_modelname(bs)) {
bits |= TURION_;
}
if ((i = match_pattern(bs, "Ryzen [3579]")) != 0) {
if ((i = match_pattern(bs, "Ryzen [3579Z]")) != 0) {
bits |= RYZEN_;
i--;
switch (bs[i + 6]) {
@ -575,6 +576,7 @@ static struct amd_code_and_bits_t decode_amd_codename_part1(const char *bs)
case '5': bits |= _5; break;
case '7': bits |= _7; break;
case '9': bits |= _9; break;
case 'Z': bits |= _Z; break;
}
for(i = i + 7; i < n; i++) {
switch (bs[i]) {

File diff suppressed because it is too large Load diff