Einzelnen Beitrag anzeigen

scp

Registriert seit: 31. Okt 2003
1.120 Beiträge
 
Delphi 7 Personal
 
#27

Re: CPUiD 2.0 - Ein kleines CPU - Diagnoseprogramm

  Alt 15. Jul 2005, 20:22
Ich hätte mal das Kleingedruckte im Datenblatt lesen sollen.
Zitat von AP-485:
This field does not indicate that Hyper-Threading Technology has been enabled. ... To determine if Hyper-Threading Technology is supported, check the value returned in EBX[23:16] ... contains a value > 1 ...
EDIT:
Source und Binary des "Referenzprojekts" geändert, DL-Link wie oben.
Schaue nochmal nach, ob AMD ähnliches gebaut hat.

@daniel g und andere Interessierte:
Delphi-Quellcode:
procedure GetIntelFeatures(var CpuInfo: TCpuInfoEx; edx : DWORD; IsExt : boolean; IsAMD : boolean);
begin

  //....

         if (not IsAMD) and ((edx and INTEL_HTT_Flag) = INTEL_HTT_Flag) and (CpuInfo.CPUCount > 1) then
             AddDesc(CpuInfo.Features, '',
              'HTT - Hyper-Threading' + ' (' + IntToStr(CpuInfo.CPUCount) + ' logical processors)', 0);

  //....


procedure IntelInfo(var CpuInfo : TCpuInfoEx);

  //....

begin
         CpuInfo.BrandID := (CpuInfo.CPUID.CpuFeatsEBX ) and $FF;
         CpuInfo.CPUCount := (CpuInfo.CPUID.CpuFeatsEBX shr 16) and $FF;

  //....
EDIT3: 8 bit haben immernoch eine Maske von FF
  Mit Zitat antworten Zitat