[v1.00] Fix ambiguity in uarch detection with 0x806E9; it may be Amber/Kaby Lake (thanks to #122 for pointing this out!). We can differentiate by CPU name (hacky, but is there a better way?)

This commit is contained in:
Dr-Noob
2021-10-07 22:32:34 +02:00
parent 432b2d7c56
commit bb12a2c276
3 changed files with 19 additions and 5 deletions

View File

@@ -176,7 +176,7 @@ struct uarch* get_cpu_uarch(struct cpuInfo* cpu) {
uint32_t family = (eax >> 8) & 0xF;
uint32_t efamily = (eax >> 20) & 0xFF;
return get_uarch_from_cpuid(cpu, efamily, family, emodel, model, (int)stepping);
return get_uarch_from_cpuid(cpu, eax, efamily, family, emodel, model, (int)stepping);
}
int64_t get_peak_performance(struct cpuInfo* cpu, struct topology* topo, int64_t max_freq, bool accurate_pp) {