xtensa-linux: use cache flush instruction only if it is available (#426)

This commit is contained in:
Lucas Pluvinage
2018-04-20 18:24:50 -04:00
committed by Anthony Green
parent 159b94e5fd
commit 7d3cab7926
+6 -1
View File
@@ -169,8 +169,13 @@ ENTRY(ffi_cacheflush)
entry a1, 16
1: dhwbi a2, 0
1:
#if XCHAL_DCACHE_SIZE
dhwbi a2, 0
#endif
#if XCHAL_ICACHE_SIZE
ihi a2, 0
#endif
addi a2, a2, 4
blt a2, a3, 1b