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

Rick Chen rickchen36 at gmail.com
Tue Oct 23 06:34:51 UTC 2018


> > > 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>

Reviewed-by: Rick Chen <rick at andestech.com>


More information about the U-Boot mailing list