mirror of
https://git.citron-emu.org/citron/emulator
synced 2025-12-20 11:03:56 +00:00
Thread: Release the ARM Interface on exitting.
This commit is contained in:
@@ -724,7 +724,7 @@ void Scheduler::SwitchContext() {
|
||||
previous_thread->SetContinuousOnSVC(false);
|
||||
previous_thread->last_running_ticks = system.CoreTiming().GetCPUTicks();
|
||||
previous_thread->SetIsRunning(false);
|
||||
if (!previous_thread->IsHLEThread()) {
|
||||
if (!previous_thread->IsHLEThread() && !previous_thread->HasExited()) {
|
||||
Core::ARM_Interface& cpu_core = previous_thread->ArmInterface();
|
||||
cpu_core.SaveContext(previous_thread->GetContext32());
|
||||
cpu_core.SaveContext(previous_thread->GetContext64());
|
||||
|
||||
Reference in New Issue
Block a user