From aa291ede73189461172d1d23a226d631c42230bd Mon Sep 17 00:00:00 2001 From: Rhys Weatherley Date: Mon, 7 Jun 2004 10:00:49 +0000 Subject: [PATCH] (jit_flush_exec): warning fix for ia64. --- ChangeLog | 2 ++ jit/jit-alloc.c | 6 +++--- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/ChangeLog b/ChangeLog index 12af455..89f81b3 100644 --- a/ChangeLog +++ b/ChangeLog @@ -33,6 +33,8 @@ * 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 * jit/jit-alloc.c (jit_flush_exec): flush cache lines properly diff --git a/jit/jit-alloc.c b/jit/jit-alloc.c index eb00cb8..35867b1 100644 --- a/jit/jit-alloc.c +++ b/jit/jit-alloc.c @@ -222,10 +222,10 @@ void jit_flush_exec(void *ptr, unsigned int size) #define CLSIZE 32 register unsigned char *p = ROUND_BEG_PTR (ptr); register unsigned char *end = ROUND_END_PTR (p + size); - while(ptr < end) + while(p < end) { - asm volatile("fc %0" :: "r"(ptr)); - ptr += CLSIZE; + asm volatile("fc %0" :: "r"(p)); + p += CLSIZE; } asm volatile(";;sync.i;;srlz.i;;"); #endif