about summary refs log tree commit diff stats
path: root/src/custommem.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/custommem.c')
-rw-r--r--src/custommem.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/custommem.c b/src/custommem.c
index dc7280e9..b6af88cc 100644
--- a/src/custommem.c
+++ b/src/custommem.c
@@ -904,6 +904,7 @@ uintptr_t AllocDynarecMap(size_t size)
             dynarec_allocated += allocsize;
 #endif
             setProtection((uintptr_t)p, allocsize, PROT_READ | PROT_WRITE | PROT_EXEC);
+
             list->chunks[i].block = p;
             list->chunks[i].first = p;
             list->chunks[i].size = allocsize;
@@ -1666,6 +1667,11 @@ int getMmapped(uintptr_t addr)
     return rb_get(mmapmem, addr);
 }
 
+int memExist(uintptr_t addr)
+{
+    return rb_get(mapallmem, addr);
+}
+
 #define LOWEST (void*)0x10000
 #define WINE_LOWEST (void*)0x30000000
 #define MEDIUM (void*)0x40000000