diff options
| author | ptitSeb <sebastien.chev@gmail.com> | 2024-11-09 14:02:38 +0100 |
|---|---|---|
| committer | ptitSeb <sebastien.chev@gmail.com> | 2024-11-09 14:02:45 +0100 |
| commit | c5ced39665e7ba2a09c936ffb4cf80ca4f843e28 (patch) | |
| tree | a0e7992f703fc2c71dc60538d28bb8b8d15cb611 /src/include | |
| parent | 7b2e77807dc46480986ddbbd053a5aa983e150d1 (diff) | |
| download | box64-c5ced39665e7ba2a09c936ffb4cf80ca4f843e28.tar.gz box64-c5ced39665e7ba2a09c936ffb4cf80ca4f843e28.zip | |
[DYNAREC] Only test page protection when needed (and using a fester way) (should address the performance regression of #2009)
Diffstat (limited to 'src/include')
| -rw-r--r-- | src/include/custommem.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/include/custommem.h b/src/include/custommem.h index 653af5e2..d892079e 100644 --- a/src/include/custommem.h +++ b/src/include/custommem.h @@ -100,6 +100,7 @@ void setProtection_elf(uintptr_t addr, size_t size, uint32_t prot); void freeProtection(uintptr_t addr, size_t size); void refreshProtection(uintptr_t addr); uint32_t getProtection(uintptr_t addr); +uint32_t getProtection_fast(uintptr_t addr); int getMmapped(uintptr_t addr); void loadProtectionFromMap(void); #ifdef DYNAREC |