aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/GPU.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/GPU.cpp b/src/GPU.cpp
index cf7adc8..f54d771 100644
--- a/src/GPU.cpp
+++ b/src/GPU.cpp
@@ -20,7 +20,10 @@
#include <string.h>
#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