Browse Source

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>
tags/v0.4.0-rc2
Øyvind Harboe 14 years ago
parent
commit
ee519ab356
2 changed files with 13 additions and 1 deletions
  1. +12
    -1
      src/target/arm7_9_common.c
  2. +1
    -0
      src/target/arm7_9_common.h

+ 12
- 1
src/target/arm7_9_common.c View File

@@ -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);


+ 1
- 0
src/target/arm7_9_common.h View File

@@ -157,5 +157,6 @@ int arm7_9_execute_sys_speed(struct target *target);

int arm7_9_init_arch_info(struct target *target, struct arm7_9_common *arm7_9);
int arm7_9_examine(struct target *target);
int arm7_9_check_reset(struct target *target);

#endif /* ARM7_9_COMMON_H */

Loading…
Cancel
Save