Fix wrong timer reading in MIPSDebugInterface, thanks Nemoumbra

This commit is contained in:
Henrik Rydgård committed 2024-03-26 13:40:25 +01:00
1 parent 7cddd09e3c
commit 22c9437319
1 file changed
+1 -1
+1 -1
View File
@@ -159,7 +159,7 @@ public:
return __KernelGetCurThreadModuleId();
if (referenceIndex == REF_INDEX_USEC)
return (uint32_t)CoreTiming::GetGlobalTimeUs(); // Loses information
if (referenceIndex == REF_INDEX_USEC)
if (referenceIndex == REF_INDEX_TICKS)
return (uint32_t)CoreTiming::GetTicks();
if ((referenceIndex & ~(REF_INDEX_FPU | REF_INDEX_FPU_INT)) < 32)
return cpu->GetRegValue(1, referenceIndex & ~(REF_INDEX_FPU | REF_INDEX_FPU_INT));