From aa3b0de1f57f85ad9a1e370671c704b2f42e1876 Mon Sep 17 00:00:00 2001 From: Bartosz Taudul Date: Wed, 10 Jun 2020 16:25:19 +0200 Subject: [PATCH] Use proper cpuid flag. --- client/TracyProfiler.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/client/TracyProfiler.cpp b/client/TracyProfiler.cpp index 812eef2e..ba0e72f2 100644 --- a/client/TracyProfiler.cpp +++ b/client/TracyProfiler.cpp @@ -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 ) ) )