Fix timer setup for fallback timer.

This commit is contained in:
Bartosz Taudul 2021-01-29 11:20:23 +01:00
parent 224956abad
commit a3bfbab6bd

View File

@ -225,7 +225,7 @@ static void InitFailure( const char* msg )
static int64_t SetupHwTimer() static int64_t SetupHwTimer()
{ {
#ifndef TRACY_TIMER_QPC #if !defined TRACY_TIMER_QPC && !defined TRACY_TIMER_FALLBACK
uint32_t regs[4]; uint32_t regs[4];
CpuId( regs, 1 ); CpuId( regs, 1 );
if( !( regs[3] & ( 1 << 4 ) ) ) InitFailure( "CPU doesn't support RDTSC instruction." ); if( !( regs[3] & ( 1 << 4 ) ) ) InitFailure( "CPU doesn't support RDTSC instruction." );