summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorØyvind Harboe <oyvind.harboe@zylin.com>2010-01-20 13:04:56 +0100
committerØyvind Harboe <oyvind.harboe@zylin.com>2010-01-20 14:51:17 +0100
commitff976cdb29686ae9aa47687c35402c66978956d6 (patch)
treee1aeae3616cb673bb7b2c1708960535aa55af413
parent0c3a4b4d818554ea00dc993d31cea9f3e0d1a87d (diff)
downloadopenocd+libswd-ff976cdb29686ae9aa47687c35402c66978956d6.tar.gz
openocd+libswd-ff976cdb29686ae9aa47687c35402c66978956d6.tar.bz2
openocd+libswd-ff976cdb29686ae9aa47687c35402c66978956d6.tar.xz
openocd+libswd-ff976cdb29686ae9aa47687c35402c66978956d6.zip
arm7/9: add nags upon reset about options to improve performance
arm7_9 fast_memory_access and working area nags added. Signed-off-by: Øyvind Harboe <oyvind.harboe@zylin.com>
-rw-r--r--src/target/arm7_9_common.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/target/arm7_9_common.c b/src/target/arm7_9_common.c
index ca1d84f5..509e91e4 100644
--- a/src/target/arm7_9_common.c
+++ b/src/target/arm7_9_common.c
@@ -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;
}