sandbox: implement invalidate_icache_all()
authorHeinrich Schuchardt <xypron.glpk@gmx.de>
Wed, 9 Dec 2020 18:42:44 +0000 (19:42 +0100)
committerSimon Glass <sjg@chromium.org>
Wed, 23 Dec 2020 03:39:25 +0000 (20:39 -0700)
commit3286d223fd715a79accfc66039f3f6f52e9a8896
treef097bac29c0e4024cb18deeaf08dd91006fa7157
parentc589132a1de0c24dd247dbeb31e387f3b945bcfb
sandbox: implement invalidate_icache_all()

Before executing code that we have loaded from a file we need to flush the
data cache and invalidate the instruction flash.

Implement functions flush_cache() and invalidate_icache_all().

Signed-off-by: Heinrich Schuchardt <xypron.glpk@gmx.de>
Reviewed-by: Simon Glass <sjg@chromium.org>
arch/sandbox/cpu/Makefile
arch/sandbox/cpu/cache.c [new file with mode: 0644]
board/sandbox/sandbox.c