From ce68e883c473730ceed1d0c41e05399d9a5f9217 Mon Sep 17 00:00:00 2001 From: RSDuck Date: Mon, 22 Aug 2022 00:44:48 +0200 Subject: [PATCH] for all people who hate speed, here you can build melonDS again --- src/GPU.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/GPU.cpp b/src/GPU.cpp index cf7adc8f..f54d771c 100644 --- a/src/GPU.cpp +++ b/src/GPU.cpp @@ -20,7 +20,10 @@ #include #include "NDS.h" #include "GPU.h" + +#ifdef JIT_ENABLED #include "ARMJIT.h" +#endif #include "GPU2D_Soft.h" @@ -654,7 +657,9 @@ void MapVRAM_CD(u32 bank, u8 cnt) VRAMMap_ARM7[ofs] |= bankmask; memset(VRAMDirty[bank].Data, 0xFF, sizeof(VRAMDirty[bank].Data)); VRAMSTAT |= (1 << (bank-2)); +#ifdef JIT_ENABLED ARMJIT::CheckAndInvalidateWVRAM(ofs); +#endif break; case 3: // texture