From 9bdc112b4df0c755d8372dabe7d04cf9926df783 Mon Sep 17 00:00:00 2001 From: Matthew Flatt Date: Mon, 22 Jun 2020 17:35:47 -0600 Subject: [PATCH] ppc32: fix icache flush original commit: d9bf4ebbc5fe32a1d3d35ba096a54e7b78d1f33c --- c/ppc32.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/c/ppc32.c b/c/ppc32.c index 803740ccd3..6607771e84 100644 --- a/c/ppc32.c +++ b/c/ppc32.c @@ -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));