summaryrefslogtreecommitdiff
path: root/src/target/arm7_9_common.c
diff options
context:
space:
mode:
authorØyvind Harboe <oyvind.harboe@zylin.com>2010-01-11 15:29:09 +0100
committerØyvind Harboe <oyvind.harboe@zylin.com>2010-01-13 12:00:02 +0100
commitee519ab3562870aa5bb1bc79f3c24cb3b3074d65 (patch)
treef7c015bdceb60aed1fb098980205a6ec5a3c4cb9 /src/target/arm7_9_common.c
parentdc793455e9a04be556b0b25eb1513ecbb7be3f51 (diff)
downloadopenocd_libswd-ee519ab3562870aa5bb1bc79f3c24cb3b3074d65.tar.gz
openocd_libswd-ee519ab3562870aa5bb1bc79f3c24cb3b3074d65.tar.bz2
openocd_libswd-ee519ab3562870aa5bb1bc79f3c24cb3b3074d65.tar.xz
openocd_libswd-ee519ab3562870aa5bb1bc79f3c24cb3b3074d65.zip
arm7/9: add fn to check if dcc downloads have been enabled
DCC downloads should be enabled for any self repecting openocd config file for arm7/9. Print out note about it otherwise. 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.c13
1 files changed, 12 insertions, 1 deletions
diff --git a/src/target/arm7_9_common.c b/src/target/arm7_9_common.c
index 2f4c408c..a5a0f80f 100644
--- a/src/target/arm7_9_common.c
+++ b/src/target/arm7_9_common.c
@@ -2,7 +2,7 @@
* Copyright (C) 2005 by Dominic Rath *
* Dominic.Rath@gmx.de *
* *
- * Copyright (C) 2007,2008 Øyvind Harboe *
+ * Copyright (C) 2007-2009 Øyvind Harboe *
* oyvind.harboe@zylin.com *
* *
* Copyright (C) 2008 by Spencer Oliver *
@@ -2723,6 +2723,17 @@ int arm7_9_examine(struct target *target)
return retval;
}
+
+int arm7_9_check_reset(struct target *target)
+{
+ struct arm7_9_common *arm7_9 = target_to_arm7_9(target);
+
+ if (get_target_reset_nag() && !arm7_9->dcc_downloads)
+ {
+ LOG_WARNING("NOTE! DCC downloads have not been enabled, defaulting to slow memory writes. Type 'help dcc'.");
+ }
+}
+
COMMAND_HANDLER(handle_arm7_9_dbgrq_command)
{
struct target *target = get_current_target(CMD_CTX);