forked from eden-emu/eden
hle: added a hokey way to force a thread reschedule during CPU single step mode (as used by the debugger)
This commit is contained in:
parent
6cdad8390c
commit
174cc9a0ed
3 changed files with 7 additions and 1 deletions
|
@ -13,6 +13,7 @@
|
|||
#include "core/arm/disassembler/arm_disasm.h"
|
||||
#include "core/arm/interpreter/arm_interpreter.h"
|
||||
|
||||
#include "core/hle/hle.h"
|
||||
#include "core/hle/kernel/thread.h"
|
||||
|
||||
namespace Core {
|
||||
|
@ -36,7 +37,7 @@ void SingleStep() {
|
|||
|
||||
g_app_core->Step();
|
||||
|
||||
if (ticks >= LCD::kFrameTicks / 2) {
|
||||
if ((ticks >= LCD::kFrameTicks / 2) || HLE::g_reschedule) {
|
||||
HW::Update();
|
||||
Kernel::Reschedule();
|
||||
ticks = 0;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue