summaryrefslogtreecommitdiffstats
path: root/src/core
diff options
context:
space:
mode:
authorbunnei <bunneidev@gmail.com>2019-09-30 03:44:10 +0200
committerGitHub <noreply@github.com>2019-09-30 03:44:10 +0200
commit28538bba9c5eb6b07564e9b427194b360e633135 (patch)
tree739b688d88e057c9723e6f44b8bd7c0eb4e3fa01 /src/core
parentMerge pull request #2909 from MysticExile/fmt-2 (diff)
parentarm_dynarmic: Check if jit is nullptr when preparing reschedule (diff)
downloadyuzu-28538bba9c5eb6b07564e9b427194b360e633135.tar
yuzu-28538bba9c5eb6b07564e9b427194b360e633135.tar.gz
yuzu-28538bba9c5eb6b07564e9b427194b360e633135.tar.bz2
yuzu-28538bba9c5eb6b07564e9b427194b360e633135.tar.lz
yuzu-28538bba9c5eb6b07564e9b427194b360e633135.tar.xz
yuzu-28538bba9c5eb6b07564e9b427194b360e633135.tar.zst
yuzu-28538bba9c5eb6b07564e9b427194b360e633135.zip
Diffstat (limited to 'src/core')
-rw-r--r--src/core/arm/dynarmic/arm_dynarmic.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/core/arm/dynarmic/arm_dynarmic.cpp b/src/core/arm/dynarmic/arm_dynarmic.cpp
index f1506b372..2a08d4cea 100644
--- a/src/core/arm/dynarmic/arm_dynarmic.cpp
+++ b/src/core/arm/dynarmic/arm_dynarmic.cpp
@@ -248,6 +248,9 @@ void ARM_Dynarmic::LoadContext(const ThreadContext& ctx) {
}
void ARM_Dynarmic::PrepareReschedule() {
+ if (jit == nullptr)
+ return;
+
jit->HaltExecution();
}