Use proper cpuid flag.

This commit is contained in:
Bartosz Taudul 2020-06-10 16:25:19 +02:00
parent 0744355a67
commit aa3b0de1f5

View File

@ -223,7 +223,7 @@ static int64_t SetupHwTimer()
{
#ifndef TRACY_TIMER_QPC
uint32_t regs[4];
CpuId( regs, 0x80000001 );
CpuId( regs, 1 );
if( !( regs[3] & ( 1 << 4 ) ) ) InitFailure( "CPU doesn't support RDTSC instruction." );
CpuId( regs, 0x80000007 );
if( !( regs[3] & ( 1 << 8 ) ) )