Skip to content

Commit 16083b8

Browse files
committed
Remove the fence.i directive
1 parent 4e1f71b commit 16083b8

File tree

1 file changed

+3
-3
lines changed
  • bsp/xuantie/virt64/c906/libcpu

1 file changed

+3
-3
lines changed

bsp/xuantie/virt64/c906/libcpu/cache.h

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -50,12 +50,12 @@ rt_always_inline void rt_hw_cpu_dcache_clean_and_invalidate_all_local(void)
5050
/*use fence.i to invalidate all icache*/
5151
rt_always_inline void rt_hw_cpu_icache_invalidate_local(void *addr, int size)
5252
{
53-
__asm__ __volatile__("fence.i" ::: "memory");
53+
5454
}
5555
/*use fence.i to invalidate all icache*/
5656
rt_always_inline void rt_hw_cpu_icache_invalidate_all_local(void)
5757
{
58-
__asm__ __volatile__("fence.i" ::: "memory");
58+
5959
}
6060

6161
/**
@@ -78,7 +78,7 @@ rt_always_inline void rt_hw_cpu_icache_invalidate_all_local(void)
7878
/** instruction barrier */
7979
static inline void rt_hw_cpu_sync(void)
8080
{
81-
__asm__ __volatile__("fence.i" ::: "memory");
81+
8282
}
8383

8484
/**

0 commit comments

Comments
 (0)