aboutsummaryrefslogtreecommitdiff
path: root/tccrun.c
diff options
context:
space:
mode:
Diffstat (limited to 'tccrun.c')
-rw-r--r--tccrun.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/tccrun.c b/tccrun.c
index 50178a8..174b6c2 100644
--- a/tccrun.c
+++ b/tccrun.c
@@ -225,6 +225,7 @@ static void set_pages_executable(void *ptr, unsigned long length)
end = (addr_t)ptr + length;
end = (end + PAGESIZE - 1) & ~(PAGESIZE - 1);
mprotect((void *)start, end - start, PROT_READ | PROT_WRITE | PROT_EXEC);
+ __clear_cache(ptr, prog_main + length);
#endif
}