diff options
| author | Thomas Preud'homme <robotux@celest.fr> | 2013-03-19 14:03:15 +0100 |
|---|---|---|
| committer | Thomas Preud'homme <robotux@celest.fr> | 2013-03-19 14:03:15 +0100 |
| commit | c68af2db9d497fd8229162bc23b9679fc2e1fc8b (patch) | |
| tree | df28749cddafb3ced25c6b652a92c593f61647a5 | |
| parent | 6ed6a36a51065060bd5e9bb516b85ff796e05f30 (diff) | |
| download | tinycc-c68af2db9d497fd8229162bc23b9679fc2e1fc8b.tar.gz tinycc-c68af2db9d497fd8229162bc23b9679fc2e1fc8b.tar.bz2 | |
Fix synchronization between data and instr caches
| -rw-r--r-- | tccrun.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -225,7 +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); + __clear_cache(ptr, ptr + length); #endif } |
