From: Mike Dunn Date: Fri, 12 Mar 2010 00:53:05 +0000 (-0800) Subject: fix xscale icache and dcache commands X-Git-Tag: v0.5.0-rc1~853 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=763013f15e348d760e193da807c5bd79437ab8c7;p=openocd 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 --- 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;