Skip to content
Snippets Groups Projects
Commit 51f636b3 authored by bunnei's avatar bunnei
Browse files

core: added Kernel::Reschedule() call to check for thread changes, shortened...

core: added Kernel::Reschedule() call to check for thread changes, shortened delay time to 100 instructions
parent f8a98ab0
No related branches found
No related tags found
No related merge requests found
......@@ -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
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment