Skip to content

Commit 391e2ca

Browse files
author
Nemirtingas
committed
Implemented Linux FlushInstructionCache
1 parent 4786dee commit 391e2ca

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

src/mini_detour_linux.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -359,6 +359,7 @@ namespace Implementation {
359359

360360
int FlushInstructionCache(void* address, size_t size)
361361
{
362+
__builtin___clear_cache(address, reinterpret_cast<void*>(reinterpret_cast<uintptr_t>(address) + size));
362363
return 1;
363364
}
364365
}//namespace Implementation

0 commit comments

Comments
 (0)