diff options
author | RSDuck <rsduck@users.noreply.github.com> | 2020-07-31 23:05:11 +0200 |
---|---|---|
committer | RSDuck <rsduck@users.noreply.github.com> | 2020-07-31 23:05:11 +0200 |
commit | e4b1526b477bc66996bce8f0a2f81c2f1cffba63 (patch) | |
tree | fb68300a22625733a9c03781be3277e8b62494b1 /src/ARMJIT.cpp | |
parent | 2a3147db461d8538334245cb1073e8b46ad2a99d (diff) |
reset JIT fastmem on JIT block cache reset as well
Diffstat (limited to 'src/ARMJIT.cpp')
-rw-r--r-- | src/ARMJIT.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/ARMJIT.cpp b/src/ARMJIT.cpp index 5b827e2..0eb792c 100644 --- a/src/ARMJIT.cpp +++ b/src/ARMJIT.cpp @@ -1159,6 +1159,10 @@ void ResetBlockCache() { printf("Resetting JIT block cache...\n"); + // could be replace through a function which only resets + // the permissions but we're too lazy + ARMJIT_Memory::Reset(); + InvalidLiterals.Clear(); for (int i = 0; i < ARMJIT_Memory::memregions_Count; i++) memset(FastBlockLookupRegions[i], 0xFF, CodeRegionSizes[i] * sizeof(u64) / 2); |