summaryrefslogtreecommitdiffstats
path: root/src/core
diff options
context:
space:
mode:
authorFernando Sahmkow <fsahmkow27@gmail.com>2020-04-03 20:11:04 +0200
committerFernando Sahmkow <fsahmkow27@gmail.com>2020-06-27 17:36:08 +0200
commit7b44187fd277a87cf33891c1fdc023dae87abfbc (patch)
treea4d9323304df188fd44dbf757a65bf94df4a39bb /src/core
parentGeneral: Correct rebase, sync gpu and context management. (diff)
downloadyuzu-7b44187fd277a87cf33891c1fdc023dae87abfbc.tar
yuzu-7b44187fd277a87cf33891c1fdc023dae87abfbc.tar.gz
yuzu-7b44187fd277a87cf33891c1fdc023dae87abfbc.tar.bz2
yuzu-7b44187fd277a87cf33891c1fdc023dae87abfbc.tar.lz
yuzu-7b44187fd277a87cf33891c1fdc023dae87abfbc.tar.xz
yuzu-7b44187fd277a87cf33891c1fdc023dae87abfbc.tar.zst
yuzu-7b44187fd277a87cf33891c1fdc023dae87abfbc.zip
Diffstat (limited to 'src/core')
-rw-r--r--src/core/arm/dynarmic/arm_dynarmic_32.cpp3
-rw-r--r--src/core/arm/dynarmic/arm_dynarmic_64.cpp3
2 files changed, 6 insertions, 0 deletions
diff --git a/src/core/arm/dynarmic/arm_dynarmic_32.cpp b/src/core/arm/dynarmic/arm_dynarmic_32.cpp
index c8adf2866..bd9c072d0 100644
--- a/src/core/arm/dynarmic/arm_dynarmic_32.cpp
+++ b/src/core/arm/dynarmic/arm_dynarmic_32.cpp
@@ -200,6 +200,9 @@ void ARM_Dynarmic_32::PrepareReschedule() {
}
void ARM_Dynarmic_32::ClearInstructionCache() {
+ if (!jit) {
+ return;
+ }
jit->ClearCache();
}
diff --git a/src/core/arm/dynarmic/arm_dynarmic_64.cpp b/src/core/arm/dynarmic/arm_dynarmic_64.cpp
index 14b394368..99eb2ea4a 100644
--- a/src/core/arm/dynarmic/arm_dynarmic_64.cpp
+++ b/src/core/arm/dynarmic/arm_dynarmic_64.cpp
@@ -301,6 +301,9 @@ void ARM_Dynarmic_64::PrepareReschedule() {
}
void ARM_Dynarmic_64::ClearInstructionCache() {
+ if (!jit) {
+ return;
+ }
jit->ClearCache();
}