1
0
Fork 0
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:
Xorg 2020-05-03 17:07:43 +02:00
parent eeec951534
commit 848394ee46
No known key found for this signature in database
GPG key ID: 1E55EE2EFF18BC1A
4 changed files with 4 additions and 4 deletions

View file

@ -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];

View file

@ -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

View file

@ -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

View file

@ -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