From c5ced39665e7ba2a09c936ffb4cf80ca4f843e28 Mon Sep 17 00:00:00 2001 From: ptitSeb Date: Sat, 9 Nov 2024 14:02:38 +0100 Subject: [DYNAREC] Only test page protection when needed (and using a fester way) (should address the performance regression of #2009) --- src/include/custommem.h | 1 + 1 file changed, 1 insertion(+) (limited to 'src/include') 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 -- cgit 1.4.1