mirror of
https://github.com/capstone-engine/llvm-capstone.git
synced 2025-02-27 05:50:12 +00:00
[VE][compiler-rt] Support VE in clear_cache.c
Support SX Aurora VE by __clear_cache() function. This modification allows VE to run written data, e.g. clear_cache_test.c under compiler-rt test. We still have code alignment problem in enable_execute_stack_test.c, though. Reviewed By: simoll Differential Revision: https://reviews.llvm.org/D92703
This commit is contained in:
parent
a2f4f7daf7
commit
414d3dc62c
@ -167,6 +167,8 @@ void __clear_cache(void *start, void *end) {
|
||||
#if __APPLE__
|
||||
// On Darwin, sys_icache_invalidate() provides this functionality
|
||||
sys_icache_invalidate(start, end - start);
|
||||
#elif defined(__ve__)
|
||||
__asm__ volatile("fencec 2");
|
||||
#else
|
||||
compilerrt_abort();
|
||||
#endif
|
||||
|
Loading…
x
Reference in New Issue
Block a user