Skip to content

Commit 9f8fcf3

Browse files
committed
[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>
1 parent 6792625 commit 9f8fcf3

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

‎include/asm-xtensa/cacheflush.h‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -70,6 +70,8 @@ extern void __flush_invalidate_dcache_page_alias(unsigned long, unsigned long);
7070
#endif
7171
#if (ICACHE_WAY_SIZE > PAGE_SIZE)
7272
extern void __invalidate_icache_page_alias(unsigned long, unsigned long);
73+
#else
74+
# define __invalidate_icache_page_alias(v,p) do { } while(0)
7375
#endif
7476

7577
/*

0 commit comments

Comments
 (0)