From e92c95180bb5bc5fd4051598a9d60beaba48988d Mon Sep 17 00:00:00 2001 From: Nobuhiro Iwamatsu Date: Wed, 12 Mar 2008 12:15:29 +0900 Subject: sh: Add support SH4 cache control Add support SH4 cache control and flash_cache function Signed-off-by: Nobuhiro Iwamatsu --- cpu/sh4/cpu.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'cpu/sh4/cpu.c') diff --git a/cpu/sh4/cpu.c b/cpu/sh4/cpu.c index 0ebf951..d94e139 100644 --- a/cpu/sh4/cpu.c +++ b/cpu/sh4/cpu.c @@ -24,6 +24,7 @@ #include #include #include +#include int checkcpu(void) { @@ -51,7 +52,7 @@ int do_reset (cmd_tbl_t *cmdtp, int flag, int argc, char *argv[]) void flush_cache (unsigned long addr, unsigned long size) { - + dcache_invalid_range( addr , addr + size ); } void icache_enable (void) -- cgit v1.1