
12 Dec
2020
12 Dec
'20
4:39 p.m.
On Wed, 9 Dec 2020 at 11:42, Heinrich Schuchardt xypron.glpk@gmx.de wrote:
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
arch/sandbox/cpu/Makefile | 2 +- arch/sandbox/cpu/cache.c | 23 +++++++++++++++++++++++ board/sandbox/sandbox.c | 4 ---- 3 files changed, 24 insertions(+), 5 deletions(-) create mode 100644 arch/sandbox/cpu/cache.c
Reviewed-by: Simon Glass sjg@chromium.org