diff packages/kernel/current/tests/kcache1.c @ 34:29bc183297e1 ecos-sw-1999-09-02

Merge from eCos master repository on 1999-09-02-16:26:10-BST
author jlarmour
date Thu, 02 Sep 1999 16:11:22 +0000
parents 306eee292492
children 41bd4f3a90de
line wrap: on
line diff
--- a/packages/kernel/current/tests/kcache1.c
+++ b/packages/kernel/current/tests/kcache1.c
@@ -297,6 +297,18 @@ static void entry0( cyg_addrword_t data 
     CYG_TEST_INFO("Dcache on Icache on (again)");
     time1();
 
+#if defined(CYGPKG_HAL_MIPS)
+    // In some architectures, the time taken for the next two tests is
+    // very long, partly because HAL_XCACHE_INVALIDATE_ALL() is implemented
+    // with a loop over the cache. Hence these tests take longer than the
+    // testing infrastructure is prepared to wait. The simplest way to get
+    // these tests to run quickly is to make them think they are running
+    // under a simulator.
+    
+    cyg_test_is_simulator = 1;
+    
+#endif
+    
 #ifdef HAL_ICACHE_INVALIDATE_ALL
     HAL_DISABLE_INTERRUPTS(oldints);
     HAL_DCACHE_PURGE_ALL();