about summary refs log tree commit diff stats
path: root/src/include/custommem.h
diff options
context:
space:
mode:
authorptitSeb <sebastien.chev@gmail.com>2024-11-09 14:02:38 +0100
committerptitSeb <sebastien.chev@gmail.com>2024-11-09 14:02:45 +0100
commitc5ced39665e7ba2a09c936ffb4cf80ca4f843e28 (patch)
treea0e7992f703fc2c71dc60538d28bb8b8d15cb611 /src/include/custommem.h
parent7b2e77807dc46480986ddbbd053a5aa983e150d1 (diff)
downloadbox64-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/custommem.h')
-rw-r--r--src/include/custommem.h1
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