mirror of
https://git.suyu.dev/suyu/suyu.git
synced 2024-12-28 19:30:58 +01:00
Merge pull request #1495 from ogniK5377/break-stop
Stop all threads on svcBreak
This commit is contained in:
commit
b183ce4365
1 changed files with 6 additions and 0 deletions
|
@ -389,6 +389,12 @@ static void Break(u32 reason, u64 info1, u64 info2) {
|
|||
"Emulated program broke execution! reason=0x{:016X}, info1=0x{:016X}, info2=0x{:016X}",
|
||||
reason, info1, info2);
|
||||
ASSERT(false);
|
||||
|
||||
Core::CurrentProcess()->PrepareForTermination();
|
||||
|
||||
// Kill the current thread
|
||||
GetCurrentThread()->Stop();
|
||||
Core::System::GetInstance().PrepareReschedule();
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue