Questions tagged [cpuid]

CPUID is an Intel x86 and x86_64 processor instruction that returns the processor type and the presence of particular features.

Originally introduced by Intel, the CPUID instruction returns the processor type and the presence of features such as MMX/SSE.

163 questions
0
votes
3 answers

CPUID returning "GenuntellineI" for Intel Processor

I'm trying to get a function that prints out the CPU's name/vendor but when I try it I end up getting "GenuntellineI". Here is the function: void PrintProcessingDeviceType() { uint32_t regs[4]; #ifdef _WIN32 __cpuid((int*)regs, 0); …
Therhang
  • 825
  • 1
  • 9
  • 15
0
votes
2 answers

Rdrand instrucrtion SIGILL

Cpuid says that I have rdrand on my system, but rdrand instruction throws sigill. I'm using linux mint inside VmWare workstation 11, I googled workstation support of rdrand, and they say that it enabled since 9th version. Proccess of host is…
0
votes
2 answers

Get vendor ID in C using cpuid

I just want to get my vendor ID, i.e. GenuineIntel using cpuid in C. This is the function I want to use: void __cpuid( int cpuInfo[4], int function_id ); This is my wrong code: int main(){ int cpuInfo[4]; __cpuid(cpuInfo, 1); }
user204415
  • 307
  • 1
  • 4
  • 20
0
votes
1 answer

Detect if AMD CPU has modules

Some Intel CPUs have hyper-threading which I can detect by reading bit 28 in register EDX from CPUID. AMD CPUs don't have hyper-threading but some of them have modules which have two integer units and one floating point unit. Is there a way, such…
Z boson
  • 32,619
  • 11
  • 123
  • 226
0
votes
2 answers

Link error when using the __cpuid() in ?

The error says: error LNK2019: unresolved external symbol WinCPUID_Init referenced in function "public: static void __cdecl CCapturer::GetCPUVendorId(void)" (?GetCPUVendorId@CCapturer@@SAXXZ) but it doesn't point out which lib I should add in…
0
votes
1 answer

CPUID output depends on order of operations

I am writing a toy OS, which is supposed to be a command line. I have tried adding CPUID to my functionality, and I get weird results when I call CPUID in consecutive order, i.e. 80000002h, 80000003h, 80000004h. If I call it in any other order, it…
Dumitru
  • 771
  • 2
  • 12
  • 23
0
votes
1 answer

strange G-WAN response speed differences

I had just implement G-WAN web server and test for my code, however, it is very strange that my server response very fast sometimes (20 ms), and sometimes over few seconds (6–7 s) or even timeout... I try to simplify my code, and return a string to…
moriya
  • 75
  • 9
0
votes
2 answers

x86 assembler cpuid output function parse result of registers

I make a fasm program with cpuid and the output is: EAX -> 0x00000662 EBX -> 0x00000000 ECX -> 0x00000000 EDX -> 0x0383FBFF I use fprint from /lib/ld-linux.so.2 to show this output. So I need to read all flags from EAX,... regs with some function…
0
votes
1 answer

How to get TLB page size with cpuid

For Intel I use: mov, eax, 2h cpuid it gives "descriptor decode value" - ok; For AMD I use: mov, eax, 80000005h cpuid It gives associativity and entries for 4MB in eax (4KB in ebx). Here it is : EAX = FF30FF10 EBX = FF30FF20" FF - full assoc.…
-1
votes
1 answer

How to use CPUID instruction to get x86 CPU features correctly?

I want to write a small program to get the features of x86CPUs. After referring CPUID document, I find there are 2 sections: (1) EAX=1: ...... As of January 2011, the standard Intel feature flags are as follows: ...... (2) EAX=80000001h: …
Nan Xiao
  • 16,671
  • 18
  • 103
  • 164
-1
votes
1 answer

cpuid function 0Bh, intel, always empty registers

On both, Linux (as root) and Windows (XP, as admin) I always get an empty registers set after calling cpuid with eax = 0xB. According to official manual,…
einclude
  • 1,026
  • 1
  • 9
  • 14
-2
votes
2 answers

How many CPU, cores are really in multiccores?

I have a corei7 intel processore(CPU name: Intel(R) Core(TM) i7-4500U CPU @ 1.80GHz, CPU type: Intel Core Haswell processor). I wonder the output of CPUID command as it shows 4 cpus each having 2 cores! Do I have really 4 CPUs? the out put…
user1173470
  • 111
  • 1
  • 7
-2
votes
1 answer

How to recognize cpu brand name in c/assembler by cpuid instruction

I have no idea how should this program work, i found some codes but i don't understand them, if somebody here was so kind and had program like this could you explain it to me? #include #include int main() { char name[13]; …
Haidin
  • 31
  • 3
1 2 3
10
11