This is the mail archive of the
ecos-discuss@sources.redhat.com
mailing list for the eCos project.
Re: SH4 cache problem
- To: ecos-discuss at sources dot redhat dot com
- Subject: Re: [ECOS] SH4 cache problem
- From: "Suzuki,RyosIII" <ryos at atom-tc dot or dot jp>
- Date: Wed, 28 Feb 2001 13:24:41 +0900
- References: <p04320400b6c178bc6aca@[192.168.0.2]>
At 00:41 +0900 2001.02.28, Suzuki,RyosIII wrote:
>Hello,
>
>I found another SH4 problems in current CVS tree about cache,
>I know current eCos doesn't support SH4's cache.
>However I think it is gdb_stub problem since I can run with cache
>by using Hardware debugger.
>please check following, and I hope this problems is fixed in near future.
>
>Thank you,
I found another cache problem,
following is my patch.
Thank you,
--- var_cache.h Sat Nov 4 06:17:47 2000
+++ /home/projects/SH/SH4/packages/hal/sh/sh4/current/include/var_cache.h
W
ed Feb 28 00:49:49 2001
@@ -191,10 +191,10 @@
externC void cyg_hal_icache_invalidate_all(void);
// Enable the cache
-#define HAL_ICACHE_ENABLE() cyg_hal_dcache_enable()
+#define HAL_ICACHE_ENABLE() cyg_hal_icache_enable()
// Disable the cache
-#define HAL_ICACHE_DISABLE() cyg_hal_dcache_disable()
+#define HAL_ICACHE_DISABLE() cyg_hal_icache_disable()
// Invalidate the entire cache
#define HAL_ICACHE_INVALIDATE_ALL() cyg_hal_icache_invalidate_all()
--
Suzuki,Ryouzaburou
ryos@atom-tc.or.jp