From 12467916a4ce5bf8042324f0dbb10a93da41d834 Mon Sep 17 00:00:00 2001 From: ptitSeb Date: Fri, 3 May 2024 18:42:03 +0200 Subject: [DYNAREC] Re-introduce a simple HotPage handling, to speedup heavily obfuscated program loading --- src/include/custommem.h | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/include') diff --git a/src/include/custommem.h b/src/include/custommem.h index 997afe85..dda21053 100644 --- a/src/include/custommem.h +++ b/src/include/custommem.h @@ -116,6 +116,10 @@ void fini_custommem_helper(box64context_t* ctx); // ---- StrongMemoryModel void addLockAddress(uintptr_t addr); // add an address to the list of "LOCK"able int isLockAddress(uintptr_t addr); // return 1 is the address is used as a LOCK, 0 else + +void SetHotPage(uintptr_t addr); +int isInHotPage(uintptr_t addr); +int checkInHotPage(uintptr_t addr); #endif void* internal_mmap(void *addr, unsigned long length, int prot, int flags, int fd, ssize_t offset); -- cgit 1.4.1