From 53365241294de8eae2da2edfb6b47f04b02f5808 Mon Sep 17 00:00:00 2001 From: ptitSeb Date: Sun, 3 Jul 2022 00:07:14 +0200 Subject: [DYNAREC] Add a mecanism to remember fixed address accessed with LOCK, so MOV to/from them use a Memory Barrier automaticaly --- src/include/custommem.h | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'src/include/custommem.h') diff --git a/src/include/custommem.h b/src/include/custommem.h index 76633e80..dba8b1f8 100644 --- a/src/include/custommem.h +++ b/src/include/custommem.h @@ -60,4 +60,10 @@ void relockCustommemMutex(int locks); void init_custommem_helper(box64context_t* ctx); void fini_custommem_helper(box64context_t* ctx); +#ifdef DYNAREC +// ---- StrongMemoryModel +void addLockAddress(uintptr_t addr); // add an address to the list of "LOCK"able +int isLockAddress(uintptr_t addr); // return 1 is the address is used as a LOCK, 0 else +#endif + #endif //__CUSTOM_MEM__H_ -- cgit 1.4.1