invalidate JIT blocks in ARM7 WVRAM when it's remapped

This commit is contained in:
RSDuck
2022-08-22 00:39:08 +02:00
parent d56219c33c
commit 32609bbc98
4 changed files with 32 additions and 3 deletions

View File

@ -20,6 +20,7 @@
#include <string.h>
#include "NDS.h"
#include "GPU.h"
#include "ARMJIT.h"
#include "GPU2D_Soft.h"
@ -653,6 +654,7 @@ void MapVRAM_CD(u32 bank, u8 cnt)
VRAMMap_ARM7[ofs] |= bankmask;
memset(VRAMDirty[bank].Data, 0xFF, sizeof(VRAMDirty[bank].Data));
VRAMSTAT |= (1 << (bank-2));
ARMJIT::CheckAndInvalidateWVRAM(ofs);
break;
case 3: // texture