aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorRSDuck <RSDuck@users.noreply.github.com>2022-08-22 00:44:48 +0200
committerRSDuck <RSDuck@users.noreply.github.com>2022-08-22 00:44:48 +0200
commitce68e883c473730ceed1d0c41e05399d9a5f9217 (patch)
treeeaf7c0da542971d379968d1fb97eb6a317be65bd /src
parent32609bbc980d2a496b40f29c41ac2e39f7651230 (diff)
for all people who hate speed, here you can build melonDS again
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