Witam, chciałbym dowiedzieć się czy z CPUID da radę wyciągnąć taktowanie procesora oraz informację o pamięci cache ? Jak na razie to znalazłem informację, że taktowanie można znaleźć w EAX=0000_0016h, ale po pobraniu danych z eax (bity od 0 do 15) pokazuje 0.
unsigned long cpuid::freq_inf()
{
unsigned long freq_base;
unsigned long freq_max;
unsigned long freq_bus;
__asm
{
mov eax, 00000016h
cpuid
mov freq_base, eax
mov freq_max, ebx
mov freq_bus, ecx
}
qDebug() << "Freq_base : " << freq_base;
qDebug() << "Freq_max : " << freq_max;
qDebug() << "Freq_bus : " << freq_bus;
return freq_base;
}
rdtsc
nie ogarniesz prosto speedstepu i podobnych