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

Bin Meng bmeng.cn at gmail.com
Mon Oct 22 07:47:03 UTC 2018


On Sat, Oct 20, 2018 at 6:10 AM Lukas Auer
<lukas.auer at aisec.fraunhofer.de> wrote:
>
> 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 at aisec.fraunhofer.de>
> ---
>
>  arch/riscv/lib/cache.c | 10 ++++++++++
>  1 file changed, 10 insertions(+)
>

Reviewed-by: Bin Meng <bmeng.cn at gmail.com>


More information about the U-Boot mailing list