1
0
Fork 0
forked from suyu/suyu

Merge pull request #1495 from ogniK5377/break-stop

Stop all threads on svcBreak
This commit is contained in:
bunnei 2018-10-14 14:31:35 -04:00 committed by GitHub
commit b183ce4365
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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}", "Emulated program broke execution! reason=0x{:016X}, info1=0x{:016X}, info2=0x{:016X}",
reason, info1, info2); reason, info1, info2);
ASSERT(false); ASSERT(false);
Core::CurrentProcess()->PrepareForTermination();
// Kill the current thread
GetCurrentThread()->Stop();
Core::System::GetInstance().PrepareReschedule();
} }
} }