Chameleon

Chameleon Commit Details

Date:2010-12-15 23:37:05 (8 years 6 months ago)
Author:Evan Lojewski
Commit:671
Parents: 670
Message:Fixed cpu deteciton, removed code added for via testing.
Changes:
M/branches/meklort/i386/libsaio/cpu.c

File differences

branches/meklort/i386/libsaio/cpu.c
379379
380380
381381
382
383
384
385
386
387
388
389
390
391
382
392383
393
394
395384
396385
397386
//CPUID_84 -> CPU String
p->CPU.NoThreads = p->CPU.NoCores;
}
p->CPU.Vendor= p->CPU.CPUID[CPUID_0][1];
p->CPU.Signature= p->CPU.CPUID[CPUID_1][0];
p->CPU.Stepping= bitfield(p->CPU.CPUID[CPUID_1][0], 3, 0);
p->CPU.Model= bitfield(p->CPU.CPUID[CPUID_1][0], 7, 4);
p->CPU.Family= bitfield(p->CPU.CPUID[CPUID_1][0], 11, 8);
p->CPU.ExtModel= bitfield(p->CPU.CPUID[CPUID_1][0], 19, 16);
p->CPU.ExtFamily= bitfield(p->CPU.CPUID[CPUID_1][0], 27, 20);
p->CPU.NoThreads= bitfield(p->CPU.CPUID[CPUID_1][1], 23, 16);
}
p->CPU.MaxCoef = maxcoef;
p->CPU.MaxDiv = maxdiv;
p->CPU.CurrCoef = currcoef;

Archive Download the corresponding diff file

Revision: 671