Re: [U-Boot] [PATCH 17/30] riscv: implement the invalidate_icache_* functions

23 Oct
2018
23 Oct
'18
8:34 a.m.
Implement the functions invalidate_icache_range() and invalidate_icache_all().
RISC-V does not have instructions for explicit cache-control. The functions in this patch are implemented with the memory ordering instruction for synchronizing the instruction and data streams. This may be implemented as a cache flush or invalidate on simple processors, others may only invalidate the relevant cache lines.
Signed-off-by: Lukas Auer lukas.auer@aisec.fraunhofer.de
arch/riscv/lib/cache.c | 10 ++++++++++ 1 file changed, 10 insertions(+)
Reviewed-by: Bin Meng bmeng.cn@gmail.com
Reviewed-by: Rick Chen rick@andestech.com
2395
Age (days ago)
2395
Last active (days ago)
0 comments
1 participants
participants (1)
-
Rick Chen