Browse Source

(jit_flush_exec): warning fix for ia64.

cache-refactoring
Rhys Weatherley 21 years ago
parent
commit
aa291ede73
  1. 2
      ChangeLog
  2. 6
      jit/jit-alloc.c

2
ChangeLog

@ -33,6 +33,8 @@
* tools/gen-apply.c: gen-apply fix for ia64. * tools/gen-apply.c: gen-apply fix for ia64.
* jit/jit-alloc.c (jit_flush_exec): warning fix for ia64.
2004-06-06 Miroslaw Dobrzanski-Neumann <mne@mosaic-ag.com> 2004-06-06 Miroslaw Dobrzanski-Neumann <mne@mosaic-ag.com>
* jit/jit-alloc.c (jit_flush_exec): flush cache lines properly * jit/jit-alloc.c (jit_flush_exec): flush cache lines properly

6
jit/jit-alloc.c

@ -222,10 +222,10 @@ void jit_flush_exec(void *ptr, unsigned int size)
#define CLSIZE 32 #define CLSIZE 32
register unsigned char *p = ROUND_BEG_PTR (ptr); register unsigned char *p = ROUND_BEG_PTR (ptr);
register unsigned char *end = ROUND_END_PTR (p + size); register unsigned char *end = ROUND_END_PTR (p + size);
while(ptr < end) while(p < end)
{ {
asm volatile("fc %0" :: "r"(ptr)); asm volatile("fc %0" :: "r"(p));
ptr += CLSIZE; p += CLSIZE;
} }
asm volatile(";;sync.i;;srlz.i;;"); asm volatile(";;sync.i;;srlz.i;;");
#endif #endif

Loading…
Cancel
Save