summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorColin Cross2014-02-11 15:31:48 -0600
committerColin Cross2014-02-11 15:32:44 -0600
commit32ea4a895c4c914f0347dd1e943bca0f474a9050 (patch)
treea7bb56d6739b7393024d7daa22d5cda4c369297f /libpixelflinger/tests/arch-arm64/assembler
parent85516e9d019a7f5af0e394ea767185c12ffbcd42 (diff)
downloadplatform-system-core-32ea4a895c4c914f0347dd1e943bca0f474a9050.tar.gz
platform-system-core-32ea4a895c4c914f0347dd1e943bca0f474a9050.tar.xz
platform-system-core-32ea4a895c4c914f0347dd1e943bca0f474a9050.zip
pixelflinger: use __builtin___clear_cache instead of cacheflush
cacheflush doesn't exist on LP64 any more, and gcc's __builtin___clear_cache is better in every way. Use it instead. Change-Id: Ibbf6facbdefc15b6dda51d014e1c44fb7aa2b17d
Diffstat (limited to 'libpixelflinger/tests/arch-arm64/assembler')
-rw-r--r--libpixelflinger/tests/arch-arm64/assembler/arm64_assembler_test.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/libpixelflinger/tests/arch-arm64/assembler/arm64_assembler_test.cpp b/libpixelflinger/tests/arch-arm64/assembler/arm64_assembler_test.cpp
index 84381d585..456be58a0 100644
--- a/libpixelflinger/tests/arch-arm64/assembler/arm64_assembler_test.cpp
+++ b/libpixelflinger/tests/arch-arm64/assembler/arm64_assembler_test.cpp
@@ -405,11 +405,11 @@ dataTransferTest_t dataTransferTests [] =
405}; 405};
406 406
407 407
408int flushcache() 408void flushcache()
409{ 409{
410 const long base = long(instrMem); 410 const long base = long(instrMem);
411 const long curr = base + long(instrMemSize); 411 const long curr = base + long(instrMemSize);
412 return cacheflush(base, curr, 0); 412 __builtin___clear_cache((void*)base, (void*)curr);
413} 413}
414void dataOpTest(dataOpTest_t test, ARMAssemblerInterface *a64asm, uint32_t Rd = 0, 414void dataOpTest(dataOpTest_t test, ARMAssemblerInterface *a64asm, uint32_t Rd = 0,
415 uint32_t Rn = 1, uint32_t Rm = 2, uint32_t Rs = 3) 415 uint32_t Rn = 1, uint32_t Rm = 2, uint32_t Rs = 3)