From 5ebdab90eacd712a42eb5ddab8a4cfa8dd482323 Mon Sep 17 00:00:00 2001 From: ptitSeb Date: Wed, 11 Jun 2025 10:01:21 +0200 Subject: [DYNACACHE] Dynarec memory is now part of MMpa file tracking when possible --- src/include/custommem.h | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'src/include/custommem.h') diff --git a/src/include/custommem.h b/src/include/custommem.h index d7b79296..1ff4bdcc 100644 --- a/src/include/custommem.h +++ b/src/include/custommem.h @@ -31,9 +31,12 @@ size_t customGetUsableSize(void* p); #ifdef DYNAREC typedef struct dynablock_s dynablock_t; +typedef struct mmaplist_s mmaplist_t; // custom protection flag to mark Page that are Write protected for Dynarec purpose -uintptr_t AllocDynarecMap(size_t size); +uintptr_t AllocDynarecMap(uintptr_t x64_addr, size_t size); void FreeDynarecMap(uintptr_t addr); +mmaplist_t* NewMmaplist(); +void DelMmaplist(mmaplist_t* list); void addDBFromAddressRange(uintptr_t addr, size_t size); // Will return 1 if at least 1 db in the address range -- cgit 1.4.1