From 2278438462e6f00e10ce9ace248505a8af0808d1 Mon Sep 17 00:00:00 2001 From: ptitSeb Date: Mon, 30 Jun 2025 16:36:38 +0200 Subject: [DYNAREC] Refactor hotpage detection and dynarec_dirty 1 & 2. Also adjust some launcher/games flags --- src/include/custommem.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/include') diff --git a/src/include/custommem.h b/src/include/custommem.h index 96ebfdd0..28503828 100644 --- a/src/include/custommem.h +++ b/src/include/custommem.h @@ -120,6 +120,7 @@ void protectDB(uintptr_t addr, size_t size); void protectDBJumpTable(uintptr_t addr, size_t size, void* jump, void* ref); void unprotectDB(uintptr_t addr, size_t size, int mark); // if mark==0, the blocks are not marked as potentially dirty void neverprotectDB(uintptr_t addr, size_t size, int mark); +void unneverprotectDB(uintptr_t addr, size_t size); int isprotectedDB(uintptr_t addr, size_t size); #endif void* find32bitBlock(size_t size); @@ -143,8 +144,7 @@ int isLockAddress(uintptr_t addr); // return 1 is the address is used as a LOCK int nLockAddressRange(uintptr_t start, size_t size); // gives the number of lock address for a range void getLockAddressRange(uintptr_t start, size_t size, uintptr_t addrs[]); // fill in the array with the lock addresses in the range (array must be of the correct size) -void SetHotPage(uintptr_t addr); -void CheckHotPage(uintptr_t addr); +void CheckHotPage(uintptr_t addr, uint32_t prot); int isInHotPage(uintptr_t addr); int checkInHotPage(uintptr_t addr); #endif -- cgit 1.4.1