summaryrefslogtreecommitdiff
path: root/src/target
diff options
context:
space:
mode:
authorMike Dunn <mikedunn@newsguy.com>2010-03-11 16:53:05 -0800
committerDavid Brownell <dbrownell@users.sourceforge.net>2010-03-11 16:53:05 -0800
commit763013f15e348d760e193da807c5bd79437ab8c7 (patch)
tree70b477e946bb60cbc5d61fccf3e9c02d02b1eeb5 /src/target
parent03a26d31e991976ff978c8c9b245210f116f6ece (diff)
downloadopenocd_libswd-763013f15e348d760e193da807c5bd79437ab8c7.tar.gz
openocd_libswd-763013f15e348d760e193da807c5bd79437ab8c7.tar.bz2
openocd_libswd-763013f15e348d760e193da807c5bd79437ab8c7.tar.xz
openocd_libswd-763013f15e348d760e193da807c5bd79437ab8c7.zip
fix xscale icache and dcache commands
Simple patch that fixes the broken xscale icache and dcache commands. This broke when the helper functions and macros were changed. [ dbrownell@users.sourceforge.net: don't use strcasecmp ] Signed-off-by: David Brownell <dbrownell@users.sourceforge.net>
Diffstat (limited to 'src/target')
-rw-r--r--src/target/xscale.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/target/xscale.c b/src/target/xscale.c
index 602034eb..50c95950 100644
--- a/src/target/xscale.c
+++ b/src/target/xscale.c
@@ -3197,9 +3197,9 @@ COMMAND_HANDLER(xscale_handle_idcache_command)
return ERROR_OK;
}
- bool icache;
- COMMAND_PARSE_BOOL(CMD_NAME, icache, "icache", "dcache");
-
+ bool icache = false;
+ if (strcmp(CMD_NAME, "icache") == 0)
+ icache = true;
if (CMD_ARGC >= 1)
{
bool enable;