From 51f636b3d44e0c963d73cbc4e1a555633980b3fb Mon Sep 17 00:00:00 2001 From: bunnei Date: Thu, 22 May 2014 22:54:07 -0400 Subject: core: added Kernel::Reschedule() call to check for thread changes, shortened delay time to 100 instructions --- src/core/core.cpp | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'src/core/core.cpp') diff --git a/src/core/core.cpp b/src/core/core.cpp index 61c237b2..f88bcd70 100644 --- a/src/core/core.cpp +++ b/src/core/core.cpp @@ -12,6 +12,8 @@ #include "core/arm/disassembler/arm_disasm.h" #include "core/arm/interpreter/arm_interpreter.h" +#include "core/hle/kernel/thread.h" + namespace Core { ARM_Disasm* g_disasm = NULL; ///< ARM disassembler @@ -21,14 +23,17 @@ ARM_Interface* g_sys_core = NULL; ///< ARM11 system (OS) core /// Run the core CPU loop void RunLoop() { for (;;){ - g_app_core->Run(10000); + g_app_core->Run(100); HW::Update(); + Kernel::Reschedule(); } } /// Step the CPU one instruction void SingleStep() { g_app_core->Step(); + HW::Update(); + Kernel::Reschedule(); } /// Halt the core -- cgit v1.2.3