[ECOS] SH4 cache problem
Suzuki, RyosIII
ryos@atom-tc.or.jp
Tue Feb 27 20:25:00 GMT 2001
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
More information about the Ecos-discuss
mailing list