From e4b1526b477bc66996bce8f0a2f81c2f1cffba63 Mon Sep 17 00:00:00 2001 From: RSDuck Date: Fri, 31 Jul 2020 23:05:11 +0200 Subject: reset JIT fastmem on JIT block cache reset as well --- src/ARMJIT.cpp | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/ARMJIT.cpp') 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); -- cgit v1.2.3