diff options
author | bunnei <bunneidev@gmail.com> | 2020-12-02 05:53:51 +0100 |
---|---|---|
committer | bunnei <bunneidev@gmail.com> | 2020-12-06 09:03:24 +0100 |
commit | c10a37e5b6bdece089fc765e9843f81a097b08a2 (patch) | |
tree | db92b06d924582e4bf5be3083def36f0468fecc4 /src/core/arm | |
parent | hle: kernel: Port KAbstractSchedulerLock from Mesosphere. (diff) | |
download | yuzu-c10a37e5b6bdece089fc765e9843f81a097b08a2.tar yuzu-c10a37e5b6bdece089fc765e9843f81a097b08a2.tar.gz yuzu-c10a37e5b6bdece089fc765e9843f81a097b08a2.tar.bz2 yuzu-c10a37e5b6bdece089fc765e9843f81a097b08a2.tar.lz yuzu-c10a37e5b6bdece089fc765e9843f81a097b08a2.tar.xz yuzu-c10a37e5b6bdece089fc765e9843f81a097b08a2.tar.zst yuzu-c10a37e5b6bdece089fc765e9843f81a097b08a2.zip |
Diffstat (limited to 'src/core/arm')
-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 193fd7d62..e9c74b1a6 100644 --- a/src/core/arm/dynarmic/arm_dynarmic_32.cpp +++ b/src/core/arm/dynarmic/arm_dynarmic_32.cpp @@ -294,6 +294,9 @@ void ARM_Dynarmic_32::InvalidateCacheRange(VAddr addr, std::size_t size) { } void ARM_Dynarmic_32::ClearExclusiveState() { + if (!jit) { + return; + } jit->ClearExclusiveState(); } diff --git a/src/core/arm/dynarmic/arm_dynarmic_64.cpp b/src/core/arm/dynarmic/arm_dynarmic_64.cpp index 0f0585d0f..b63f79915 100644 --- a/src/core/arm/dynarmic/arm_dynarmic_64.cpp +++ b/src/core/arm/dynarmic/arm_dynarmic_64.cpp @@ -330,6 +330,9 @@ void ARM_Dynarmic_64::InvalidateCacheRange(VAddr addr, std::size_t size) { } void ARM_Dynarmic_64::ClearExclusiveState() { + if (!jit) { + return; + } jit->ClearExclusiveState(); } |