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
1
vote
1 answer

Is it possible to combine CPUID and Instruction set emulation arguments in Intel SDE

Running sde.exe -nhm -bmi1 1 -- TestConsole.exe command don't take into account the -bmi1 1 option. It emulates nhm instruction set correctly but doesn't emulate the bmi1 instruction set. Is it possible to combine them some other way?
ptp
  • 511
  • 5
  • 13
1
vote
1 answer

Duplicating functionality for extracting cache line size with cpuid

I examined the cpuid documentation and discovered 2 different documented ways of getting cache line size: eax = 0x04, ecx = $cache_level In this way the cache line size at the $cache_level will be stored at EBX[11:0] bits eax = 0x80000006 In…
St.Antario
  • 26,175
  • 41
  • 130
  • 318
1
vote
1 answer

How to interpret System-On-Chip cpu vendor string?

Intel Manual defines the cpuid leaf 0x17 to be responsible for cpu vendor string. The output depends on the value in ecx. So according to the note: Leaf 17H output depends on the initial value in ECX. SOC Vendor Brand String is a UTF-8 encoded…
St.Antario
  • 26,175
  • 41
  • 130
  • 318
1
vote
2 answers

How to get cpuid using inline assembly in powerpc?

I am trying compile a c++ code. but I am getting an error on power8 architecture. which is working fine in x86_64 architectures. below is the error I am getting. error: impossible register constraint in 'asm' : "a"(func)); …
Satya Harish
  • 88
  • 1
  • 10
1
vote
0 answers

Finding CPU Platform Name and Family

I’ve been Googling all morning trying to find a way to use VB.Net code to find the platform and family of my CPU. For instance: Intel Xeon (Haswell) OR Intel Xeon (Sandy Bridge) I have a program I’ve been working on that has several different…
user854695
  • 27
  • 1
1
vote
1 answer

Using inline assembly with serialization instructions

We consider that we are using GCC (or GCC-compatible) compiler on a X86_64 architecture, and that eax, ebx, ecx, edx and level are variables (unsigned int or unsigned int*) for input and output of the instruction (like here). asm("CPUID":::); asm…
Vincent
  • 57,703
  • 61
  • 205
  • 388
1
vote
1 answer

How can I check whether an ISA extension is supported by current ARM CPU?

When a userspace program on x86 needs to determine whether e.g. AVX extension is supported, it can use CPUID instruction. Is there any similarly OS-independent way to check support for an ISA extension (e.g. NEON) in ARM?
Ruslan
  • 18,162
  • 8
  • 67
  • 136
1
vote
2 answers

Some inline assembler questions

I already asked similar question here, but I still get some errors, so I hope you could tell me what am I doing wrong. Just know that I know assembler, and I have done several projects in 8051 assembler, and even it is not the same, is close to x86…
B.Gen.Jack.O.Neill
  • 8,169
  • 12
  • 51
  • 79
1
vote
2 answers

Manually exposing a CPU Flag to Guest VM for testing purposes

I have an Ubuntu (trying this on either 14.04 or 16.04) KVM host with an Intel E5-26xx v3 processor. There is a certain flag that I need to have exposed to the guest VM, but QEMU/libvirt is not exposing that, even if I use the cpu…
hotsauce
  • 11
  • 2
1
vote
0 answers

`uname -m` differs from `arch` after deployed an El Capitan VM with Virtualbox (5.x)

I am going to get an El Capitan virtual machine. I have a VirtualBox v5.1.6 which runs on a CentOS-7.2/i5-6042P x64 machine. I followed the steps 'https://techsviewer.com/how-to-install-mac-os-x-el-capitan-on-pc-on-virtualbox/', which finally helps…
Sid Moore
  • 11
  • 2
1
vote
0 answers

On which CPU processor is OpenCL kernel running

I want to determine exactly how AMD schedules its OpenCL kernels on the CPU and I could not find any OpenCL function to determine the physical processor/core id on which it is running. I could only find the following links related to my…
Kunal Kapoor
  • 445
  • 4
  • 13
1
vote
0 answers

XEN CPUID Exit handler

What happens when cpuid instruction is executed in domU kernel? I was checking xc_cpuid_x86.c file in /tools/libxc but looks like XEN is not trapping cpuid instruction at all. I was not able to find out where the exit handler is written in XEN for…
Tjs
  • 843
  • 10
  • 17
1
vote
1 answer

__asm block causing crash in Xcode 5

I have a small class for getting CpuID information. Inside a class constructor I have an inline function using asm code to get cpuid information. It works fine in Windows and it worked fine in Xcode 3, but now the class itself gets destroyed. Here…
Iron-Eagle
  • 1,707
  • 2
  • 17
  • 34
1
vote
0 answers

Where do CPUID information stores in possessor?

CPUID is an x86 Assembly instruction to get CPU specs and information, like if hyper-threading is allowed or a virtualization is supported. but does anybody knows, where this information is stored in the processor? is it in micro code?
user2735045
1
vote
1 answer

Expected an expression in `__asm` statement

I'm using code from this forum topic in order to obtain the CPU's family information: #include struct cpuid_type { unsigned int eax; unsigned int ebx; unsigned int ecx; unsigned int edx; }; typedef struct cpuid_type…
AStopher
  • 4,207
  • 11
  • 50
  • 75