]> git.sur5r.net Git - openocd/commitdiff
arm7/9: add nags upon reset about options to improve performance
authorØyvind Harboe <oyvind.harboe@zylin.com>
Wed, 20 Jan 2010 12:04:56 +0000 (13:04 +0100)
committerØyvind Harboe <oyvind.harboe@zylin.com>
Wed, 20 Jan 2010 13:51:17 +0000 (14:51 +0100)
arm7_9 fast_memory_access and working area nags added.

Signed-off-by: Øyvind Harboe <oyvind.harboe@zylin.com>
src/target/arm7_9_common.c

index ca1d84f5de3449d596331752dfe0902da109ab46..509e91e4c8c43a9646f3dd3e7eab81d5ca787f95 100644 (file)
@@ -2760,6 +2760,16 @@ int arm7_9_check_reset(struct target *target)
                LOG_WARNING("NOTE! DCC downloads have not been enabled, defaulting to slow memory writes. Type 'help dcc'.");
        }
 
+       if (get_target_reset_nag() && (target->working_area_size == 0))
+       {
+               LOG_WARNING("NOTE! Severe performance degradation without working memory enabled.");
+       }
+
+       if (get_target_reset_nag() && !arm7_9->fast_memory_access)
+       {
+               LOG_WARNING("NOTE! Severe performance degradation without fast memory access enabled. Type 'help fast'.");
+       }
+
        return ERROR_OK;
 }