diff options
| author | ptitSeb <sebastien.chev@gmail.com> | 2022-07-03 00:07:14 +0200 |
|---|---|---|
| committer | ptitSeb <sebastien.chev@gmail.com> | 2022-07-03 00:07:14 +0200 |
| commit | 53365241294de8eae2da2edfb6b47f04b02f5808 (patch) | |
| tree | 84207aa9154910518978b28ac0e3f28b72219e27 /src/include/custommem.h | |
| parent | de30d37ba91b093d459365a93ea9cc4418fc502a (diff) | |
| download | box64-53365241294de8eae2da2edfb6b47f04b02f5808.tar.gz box64-53365241294de8eae2da2edfb6b47f04b02f5808.zip | |
[DYNAREC] Add a mecanism to remember fixed address accessed with LOCK, so MOV to/from them use a Memory Barrier automaticaly
Diffstat (limited to 'src/include/custommem.h')
| -rw-r--r-- | src/include/custommem.h | 6 |
1 files changed, 6 insertions, 0 deletions
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_ |