mirror of
https://git.suyu.dev/suyu/suyu.git
synced 2026-02-23 20:31:14 +00:00
arm: added option to prepare CPU core (while mid-instruction) for thread reschedule
This commit is contained in:
@@ -140,3 +140,8 @@ void ARM_Interpreter::LoadContext(const ThreadContext& ctx) {
|
||||
state->Reg[15] = ctx.pc;
|
||||
state->NextInstr = RESUME;
|
||||
}
|
||||
|
||||
/// Prepare core for thread reschedule (if needed to correctly handle state)
|
||||
void ARM_Interpreter::PrepareReschedule() {
|
||||
state->NumInstrsToExecute = 0;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user