From ab6deeb319cf4389f0cfd555c8aa922300065ee6 Mon Sep 17 00:00:00 2001 From: ptitSeb Date: Mon, 16 Jun 2025 12:07:22 +0200 Subject: [DYNACACHE] Added the ability to mark a maplist has having new blocks (instead of dirty block that are refreshed) --- src/include/custommem.h | 2 +- src/include/dynarec_native.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'src/include') diff --git a/src/include/custommem.h b/src/include/custommem.h index 1ff4bdcc..17acc1e9 100644 --- a/src/include/custommem.h +++ b/src/include/custommem.h @@ -33,7 +33,7 @@ size_t customGetUsableSize(void* p); 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(uintptr_t x64_addr, size_t size); +uintptr_t AllocDynarecMap(uintptr_t x64_addr, size_t size, int is_new); void FreeDynarecMap(uintptr_t addr); mmaplist_t* NewMmaplist(); void DelMmaplist(mmaplist_t* list); diff --git a/src/include/dynarec_native.h b/src/include/dynarec_native.h index 74e0e05a..c5bca0a4 100644 --- a/src/include/dynarec_native.h +++ b/src/include/dynarec_native.h @@ -24,6 +24,6 @@ typedef struct instsize_s instsize_t; void addInst(instsize_t* insts, size_t* size, int x64_size, int native_size); void CancelBlock64(int need_lock); -dynablock_t* FillBlock64(uintptr_t addr, int alternate, int is32bits, int inst_max); +dynablock_t* FillBlock64(uintptr_t addr, int alternate, int is32bits, int inst_max, int is_new); #endif //__DYNAREC_ARM_H_ -- cgit 1.4.1