x86 ASM - cpuid 是否设置标志?

x86 ASM - does cpuid set the flags?

x86 CPUID 指令是否改变标志寄存器?不幸的是,我无权访问调试器。

我正在 D 程序中编写一些 GCC 汇编程序代码,我想知道是否将 "cc" 放在 clobber 中,只是为了安全起见。

根据http://www.felixcloutier.com/x86/CPUID.html

Flags Affected

None.

虽然 CPUID 和 eflags 之间有一个 link。
x86 CPU 仅支持 CPUID if ...

The ID flag (bit 21) in the EFLAGS register indicates support for the CPUID instruction. If a software procedure can set and clear this flag, the processor executing the procedure supports the CPUID instruction.