diff options
| author | ptitSeb <sebastien.chev@gmail.com> | 2024-05-03 18:42:03 +0200 |
|---|---|---|
| committer | ptitSeb <sebastien.chev@gmail.com> | 2024-05-03 18:42:03 +0200 |
| commit | 12467916a4ce5bf8042324f0dbb10a93da41d834 (patch) | |
| tree | b617fe857d5aff21c4df1404c19dba1dcb7be452 /src/include | |
| parent | 6f0eb5662177f83458a8ad6db29501851f5d66b8 (diff) | |
| download | box64-12467916a4ce5bf8042324f0dbb10a93da41d834.tar.gz box64-12467916a4ce5bf8042324f0dbb10a93da41d834.zip | |
[DYNAREC] Re-introduce a simple HotPage handling, to speedup heavily obfuscated program loading
Diffstat (limited to 'src/include')
| -rw-r--r-- | src/include/custommem.h | 4 |
1 files changed, 4 insertions, 0 deletions
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); |