diff options
| author | ptitSeb <sebastien.chev@gmail.com> | 2025-06-30 16:36:38 +0200 |
|---|---|---|
| committer | ptitSeb <sebastien.chev@gmail.com> | 2025-06-30 16:36:38 +0200 |
| commit | 2278438462e6f00e10ce9ace248505a8af0808d1 (patch) | |
| tree | 6c6f380282c110fced76d307d602faa3d25467b4 /src/include | |
| parent | a942cef1eed4fba6447303e9f475940a0a4c1ed5 (diff) | |
| download | box64-2278438462e6f00e10ce9ace248505a8af0808d1.tar.gz box64-2278438462e6f00e10ce9ace248505a8af0808d1.zip | |
[DYNAREC] Refactor hotpage detection and dynarec_dirty 1 & 2. Also adjust some launcher/games flags
Diffstat (limited to 'src/include')
| -rw-r--r-- | src/include/custommem.h | 4 |
1 files changed, 2 insertions, 2 deletions
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 |