mirror of
https://github.com/partic2/libffi
synced 2026-11-09 17:47:19 +00:00
xtensa-linux: use cache flush instruction only if it is available (#426)
This commit is contained in:
committed by
Anthony Green
parent
159b94e5fd
commit
7d3cab7926
+6
-1
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user