mirror of
https://github.com/anrieff/libcpuid
synced 2024-11-10 22:59:13 +00:00
Fixed a detection for Turion Griffin - it's ext_family is not 23, it's 17.
Also, the sse-width guesswork seems to handle this (wrong) Griffin ext_family explicitly, so fix it there as well. Seems that members of ext_family 20 (AMD Fusion based APUs) also are 64-bit, but they have the authoritative sse width detection bit, so we don't need to handle them explicitly here.
This commit is contained in:
parent
f5ab18506f
commit
5052ad4d1f
2 changed files with 3 additions and 3 deletions
|
@ -202,7 +202,7 @@ static void load_features_common(struct cpu_raw_data_t* raw, struct cpu_id_t* da
|
||||||
/* apply guesswork to check if the SSE unit width is 128 bit */
|
/* apply guesswork to check if the SSE unit width is 128 bit */
|
||||||
switch (data->vendor) {
|
switch (data->vendor) {
|
||||||
case VENDOR_AMD:
|
case VENDOR_AMD:
|
||||||
data->sse_size = (data->ext_family >= 16 && data->ext_family != 23) ? 128 : 64;
|
data->sse_size = (data->ext_family >= 16 && data->ext_family != 17) ? 128 : 64;
|
||||||
break;
|
break;
|
||||||
case VENDOR_INTEL:
|
case VENDOR_INTEL:
|
||||||
data->sse_size = (data->family == 6 && data->ext_model >= 15) ? 128 : 64;
|
data->sse_size = (data->family == 6 && data->ext_model >= 15) ? 128 : 64;
|
||||||
|
|
|
@ -212,8 +212,8 @@ const struct match_entry_t cpudb_amd[] = {
|
||||||
{ 15, -1, -1, 15, 0x4c, 1, 512, -1, TURION_64 , 0, "Turion 64 (Richmond)" },
|
{ 15, -1, -1, 15, 0x4c, 1, 512, -1, TURION_64 , 0, "Turion 64 (Richmond)" },
|
||||||
{ 15, -1, -1, 15, 0x68, 2, 256, -1, TURION_X2 , 0, "Turion X2 (Tyler/256K)" },
|
{ 15, -1, -1, 15, 0x68, 2, 256, -1, TURION_X2 , 0, "Turion X2 (Tyler/256K)" },
|
||||||
{ 15, -1, -1, 15, 0x68, 2, 512, -1, TURION_X2 , 0, "Turion X2 (Tyler/512K)" },
|
{ 15, -1, -1, 15, 0x68, 2, 512, -1, TURION_X2 , 0, "Turion X2 (Tyler/512K)" },
|
||||||
{ 15, -1, -1, 23, 3, 2, 512, -1, TURION_X2 , 0, "Turion X2 (Griffin/512K)" },
|
{ 15, -1, -1, 17, 3, 2, 512, -1, TURION_X2 , 0, "Turion X2 (Griffin/512K)" },
|
||||||
{ 15, -1, -1, 23, 3, 2, 1024, -1, TURION_X2 , 0, "Turion X2 (Griffin/1024K)" },
|
{ 15, -1, -1, 17, 3, 2, 1024, -1, TURION_X2 , 0, "Turion X2 (Griffin/1024K)" },
|
||||||
|
|
||||||
/* K9 Architecture */
|
/* K9 Architecture */
|
||||||
{ 15, -1, -1, 16, -1, 1, -1, -1, PHENOM , 0, "Unknown AMD Phenom" },
|
{ 15, -1, -1, 16, -1, 1, -1, -1, PHENOM , 0, "Unknown AMD Phenom" },
|
||||||
|
|
Loading…
Reference in a new issue