diff options
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 |
commit | ff976cdb29686ae9aa47687c35402c66978956d6 (patch) | |
tree | e1aeae3616cb673bb7b2c1708960535aa55af413 /src/target/arm7_9_common.c | |
parent | 0c3a4b4d818554ea00dc993d31cea9f3e0d1a87d (diff) | |
download | riscv-openocd-ff976cdb29686ae9aa47687c35402c66978956d6.zip riscv-openocd-ff976cdb29686ae9aa47687c35402c66978956d6.tar.gz riscv-openocd-ff976cdb29686ae9aa47687c35402c66978956d6.tar.bz2 |
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>
Diffstat (limited to 'src/target/arm7_9_common.c')
-rw-r--r-- | src/target/arm7_9_common.c | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/src/target/arm7_9_common.c b/src/target/arm7_9_common.c index ca1d84f..509e91e 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; } |