diff options
author | Fernando Sahmkow <fsahmkow27@gmail.com> | 2020-04-03 20:11:04 +0200 |
---|---|---|
committer | Fernando Sahmkow <fsahmkow27@gmail.com> | 2020-06-27 17:36:08 +0200 |
commit | 7b44187fd277a87cf33891c1fdc023dae87abfbc (patch) | |
tree | a4d9323304df188fd44dbf757a65bf94df4a39bb /src/core | |
parent | General: Correct rebase, sync gpu and context management. (diff) | |
download | yuzu-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.cpp | 3 | ||||
-rw-r--r-- | src/core/arm/dynarmic/arm_dynarmic_64.cpp | 3 |
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(); } |