1
0
Fork 0
mirror of https://github.com/anrieff/libcpuid synced 2025-10-03 11:01:30 +00:00

Fixed issue #81: Misdiagnosis microarchitecture for i3-3220T

It's a mystery to me why this CPU doesn't have RdRand.
A quick-n-dirty workaround is inserted to fix that.
This commit is contained in:
Veselin Georgiev 2017-02-10 03:33:54 +02:00
commit 86bf8e8269
2 changed files with 103 additions and 1 deletions

View file

@ -644,7 +644,9 @@ static intel_code_t get_brand_code(struct cpu_id_t* data)
core_ix_base = CORE_I3;
/* if it has RdRand, then it is at least Ivy Bridge */
if (data->flags[CPU_FEATURE_RDRAND])
/* the second check is to catch a weird case, where an "Core(TM) i3-3220T" apparently
* didn't have RdRand, see issue #81 */
if (data->flags[CPU_FEATURE_RDRAND] || (data->ext_family == 6 && data->ext_model == 58))
core_ix_base = CORE_IVY3;
/* if it has FMA, then it is at least Haswell */
if (data->flags[CPU_FEATURE_FMA3])