QString HostInfo::getCPUID(){ QString CPUID; int b; for (int a = 0; a < 5; a++) { asm ( "mov %1, %%eax; cpuid; mov %%eax, %0;" :"=r"(b) /* output */ :"r"(a) /* input */ :"%eax","%ebx","%ecx","%edx" /* clobbered register */ ); // qDebug() << "The code " << a << " gives " << b; CPUID.append(QString("%1").arg(b)); } return CPUID;}