From 2183d0d6be0caa2a82ed2fed24f97b82a8c63ad0 Mon Sep 17 00:00:00 2001 From: Weiyi Wang Date: Tue, 30 Oct 2018 00:35:37 -0400 Subject: [PATCH] core: use internal kernel pointer directly --- src/core/core.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/core/core.cpp b/src/core/core.cpp index 695afef4f..be9796aeb 100644 --- a/src/core/core.cpp +++ b/src/core/core.cpp @@ -59,7 +59,7 @@ System::ResultStatus System::RunLoop(bool tight_loop) { // If we don't have a currently active thread then don't execute instructions, // instead advance to the next event and try to yield to the next thread - if (Kernel().GetThreadManager().GetCurrentThread() == nullptr) { + if (kernel->GetThreadManager().GetCurrentThread() == nullptr) { LOG_TRACE(Core_ARM11, "Idling"); CoreTiming::Idle(); CoreTiming::Advance();