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:
parent
764607faa0
commit
ede3b8ca9e
3 changed files with 1009 additions and 1 deletions
|
@ -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;
|
||||
|
||||
|
|
|
@ -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]) {
|
||||
|
|
1005
tests/amd/zen4/ryzen-z1-phoenix.test
Normal file
1005
tests/amd/zen4/ryzen-z1-phoenix.test
Normal file
File diff suppressed because it is too large
Load diff
Loading…
Reference in a new issue