summaryrefslogtreecommitdiffstats
path: root/src/core/hle/kernel
diff options
context:
space:
mode:
authorDavid Marcec <dmarcecguzman@gmail.com>2018-10-14 09:14:51 +0200
committerDavid Marcec <dmarcecguzman@gmail.com>2018-10-14 09:14:51 +0200
commit92fae7e1abcf4c44a3c4abdabdd9b8586560a30c (patch)
tree6eff3c5a144552e44da2750a0c04f0b002cd6889 /src/core/hle/kernel
parentMerge pull request #1409 from DarkLordZach/key-derivation (diff)
downloadyuzu-92fae7e1abcf4c44a3c4abdabdd9b8586560a30c.tar
yuzu-92fae7e1abcf4c44a3c4abdabdd9b8586560a30c.tar.gz
yuzu-92fae7e1abcf4c44a3c4abdabdd9b8586560a30c.tar.bz2
yuzu-92fae7e1abcf4c44a3c4abdabdd9b8586560a30c.tar.lz
yuzu-92fae7e1abcf4c44a3c4abdabdd9b8586560a30c.tar.xz
yuzu-92fae7e1abcf4c44a3c4abdabdd9b8586560a30c.tar.zst
yuzu-92fae7e1abcf4c44a3c4abdabdd9b8586560a30c.zip
Diffstat (limited to 'src/core/hle/kernel')
-rw-r--r--src/core/hle/kernel/svc.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/core/hle/kernel/svc.cpp b/src/core/hle/kernel/svc.cpp
index e406df829..198865fd0 100644
--- a/src/core/hle/kernel/svc.cpp
+++ b/src/core/hle/kernel/svc.cpp
@@ -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();
}
}