2
1
Fork 0
mirror of https://github.com/yuzu-emu/yuzu.git synced 2024-07-04 23:31:19 +01:00

Dynarmic Interface: don't clear cache if JIT has not been created.

This commit is contained in:
Fernando Sahmkow 2020-04-03 14:11:04 -04:00
parent ad92865497
commit 7b44187fd2
2 changed files with 6 additions and 0 deletions

View file

@ -200,6 +200,9 @@ void ARM_Dynarmic_32::PrepareReschedule() {
} }
void ARM_Dynarmic_32::ClearInstructionCache() { void ARM_Dynarmic_32::ClearInstructionCache() {
if (!jit) {
return;
}
jit->ClearCache(); jit->ClearCache();
} }

View file

@ -301,6 +301,9 @@ void ARM_Dynarmic_64::PrepareReschedule() {
} }
void ARM_Dynarmic_64::ClearInstructionCache() { void ARM_Dynarmic_64::ClearInstructionCache() {
if (!jit) {
return;
}
jit->ClearCache(); jit->ClearCache();
} }