fix PPC instruct-cache flush to not walk past the end of an allocated page
svn: r11973
This commit is contained in:
parent
4609f594b6
commit
aedc028b2c
|
@ -48,8 +48,7 @@
|
|||
# define _CALL_DARWIN
|
||||
#endif
|
||||
|
||||
/* Separate JIT_PRECISE_GC lets us test some 3m support
|
||||
in non-3m mode: */
|
||||
/* Separate JIT_PRECISE_GC lets us test some 3m support in non-3m mode: */
|
||||
#ifdef MZ_PRECISE_GC
|
||||
# define JIT_PRECISE_GC
|
||||
#endif
|
||||
|
|
|
@ -71,7 +71,7 @@ jit_flush_code(void *start, void *end)
|
|||
}
|
||||
|
||||
start -= ((long) start) & (cache_line_size - 1);
|
||||
end -= ((long) end) & (cache_line_size - 1);
|
||||
end -= ((long) end - sizeof(long)) & (cache_line_size - 1);
|
||||
|
||||
/* Force data cache write-backs */
|
||||
for (ddest = (char *) start; ddest <= (char *) end; ddest += cache_line_size) {
|
||||
|
|
Loading…
Reference in New Issue
Block a user