mirror of
https://github.com/melonDS-emu/melonDS.git
synced 2025-07-21 05:09:46 -06:00
reset JIT fastmem on JIT block cache reset as well
This commit is contained in:
@ -1159,6 +1159,10 @@ void ResetBlockCache()
|
|||||||
{
|
{
|
||||||
printf("Resetting JIT block cache...\n");
|
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();
|
InvalidLiterals.Clear();
|
||||||
for (int i = 0; i < ARMJIT_Memory::memregions_Count; i++)
|
for (int i = 0; i < ARMJIT_Memory::memregions_Count; i++)
|
||||||
memset(FastBlockLookupRegions[i], 0xFF, CodeRegionSizes[i] * sizeof(u64) / 2);
|
memset(FastBlockLookupRegions[i], 0xFF, CodeRegionSizes[i] * sizeof(u64) / 2);
|
||||||
|
Reference in New Issue
Block a user