diff options
Diffstat (limited to 'tests/flush-cache.S')
-rw-r--r-- | tests/flush-cache.S | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/tests/flush-cache.S b/tests/flush-cache.S index 6d514499..3ee47269 100644 --- a/tests/flush-cache.S +++ b/tests/flush-cache.S @@ -77,7 +77,21 @@ flush_cache: .globl flush_cache flush_cache: bx lr +#elif defined(__tilegx__) + .text + .globl flush_cache +flush_cache: + andi r0, r0, -64 +1: { + flush r0 ; + addi r0, r0, 64 + } + { + bgtz r1, 1b ; + addi r1, r1, -64 + } + jrp lr #else # error Need flush_cache code for this architecture. #endif |