ppc32: fix icache flush

original commit: d9bf4ebbc5fe32a1d3d35ba096a54e7b78d1f33c
This commit is contained in:
Matthew Flatt 2020-06-22 17:35:47 -06:00
parent e0a60ac950
commit 9bdc112b4d

View File

@ -40,7 +40,7 @@ void S_doflush(uptr start, uptr end) {
#endif
start &= ~(l1_max_cache_line_size - 1);
end = (end + l1_max_cache_line_size) & ~(l1_max_cache_line_size - 1);
end = (end + l1_max_cache_line_size - 1) & ~(l1_max_cache_line_size - 1);
for(i = start; i < end; i += l1_dcache_line_size) {
__asm__ __volatile__ ("dcbst 0, %0" :: "r" (i));