diff options
-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); |