Commit 9f8fcf38e8928cccf8c7b32668d146e457f2ccf2

Authored by Chris Zankel
1 parent 679262578b

[XTENSA] Fix cache flush macro for D$/I$ aliasing/non-aliasing

For configurations that have aliasing in the data cache but
not in the instruction cache, we don't need to flush the
instruction cache. Thus, we didn't define the macros to
flush the instruction cache. Some cache-flush functions,
howerver, were using those macros.

Signed-off-by: Chris Zankel <chris@zankel.net>

Showing 1 changed file with 2 additions and 0 deletions Side-by-side Diff

include/asm-xtensa/cacheflush.h
... ... @@ -70,6 +70,8 @@
70 70 #endif
71 71 #if (ICACHE_WAY_SIZE > PAGE_SIZE)
72 72 extern void __invalidate_icache_page_alias(unsigned long, unsigned long);
  73 +#else
  74 +# define __invalidate_icache_page_alias(v,p) do { } while(0)
73 75 #endif
74 76  
75 77 /*