mirror of
https://github.com/anrieff/libcpuid
synced 2024-12-26 16:55:45 +00:00
Fix L3 cache associativity detection on AMD Zen 2 CPUs
This commit is contained in:
parent
eeec951534
commit
848394ee46
4 changed files with 4 additions and 4 deletions
|
@ -363,7 +363,7 @@ static void decode_amd_cache_info(struct cpu_raw_data_t* raw, struct cpu_id_t* d
|
||||||
{
|
{
|
||||||
int l3_result;
|
int l3_result;
|
||||||
const int assoc_table[16] = {
|
const int assoc_table[16] = {
|
||||||
0, 1, 2, 0, 4, 0, 8, 0, 16, 0, 32, 48, 64, 96, 128, 255
|
0, 1, 2, 0, 4, 0, 8, 0, 16, 16, 32, 48, 64, 96, 128, 255
|
||||||
};
|
};
|
||||||
unsigned n = raw->ext_cpuid[0][0];
|
unsigned n = raw->ext_cpuid[0][0];
|
||||||
|
|
||||||
|
|
|
@ -67,7 +67,7 @@ ext_cpuid[31]=0001000f 0000016f 000001fd 00000001
|
||||||
-1
|
-1
|
||||||
8
|
8
|
||||||
8
|
8
|
||||||
0
|
16
|
||||||
-1
|
-1
|
||||||
64
|
64
|
||||||
64
|
64
|
||||||
|
|
|
@ -91,7 +91,7 @@ ext_cpuid[31]=0001000f 0000016f 000001fd 00000001
|
||||||
-1
|
-1
|
||||||
8
|
8
|
||||||
8
|
8
|
||||||
0
|
16
|
||||||
-1
|
-1
|
||||||
64
|
64
|
||||||
64
|
64
|
||||||
|
|
|
@ -91,7 +91,7 @@ ext_cpuid[31]=0001000f 0000016f 000001fd 00000001
|
||||||
-1
|
-1
|
||||||
8
|
8
|
||||||
8
|
8
|
||||||
0
|
16
|
||||||
-1
|
-1
|
||||||
64
|
64
|
||||||
64
|
64
|
||||||
|
|
Loading…
Reference in a new issue