diff --git a/client/TracyProfiler.cpp b/client/TracyProfiler.cpp index 80636c2d..e1466d43 100644 --- a/client/TracyProfiler.cpp +++ b/client/TracyProfiler.cpp @@ -170,7 +170,7 @@ struct ThreadHandleWrapper #endif -#if defined TRACY_HW_TIMER && ( defined __i386 || defined _M_IX86 || defined __x86_64__ || defined _M_X64 ) +#if defined __i386 || defined _M_IX86 || defined __x86_64__ || defined _M_X64 static inline void CpuId( uint32_t* regs, uint32_t leaf ) { #if defined _WIN32 || defined __CYGWIN__ @@ -410,12 +410,7 @@ static const char* GetHostInfo() auto modelPtr = cpuModel; for( uint32_t i=0x80000002; i<0x80000005; ++i ) { -# if defined _WIN32 || defined __CYGWIN__ - __cpuidex( (int*)regs, i, 0 ); -# else - int zero = 0; - asm volatile ( "cpuid" : "=a" (regs[0]), "=b" (regs[1]), "=c" (regs[2]), "=d" (regs[3]) : "a" (i), "c" (zero) ); -# endif + CpuId( regs, i ); memcpy( modelPtr, regs, sizeof( regs ) ); modelPtr += sizeof( regs ); }