From 763013f15e348d760e193da807c5bd79437ab8c7 Mon Sep 17 00:00:00 2001 From: Mike Dunn Date: Thu, 11 Mar 2010 16:53:05 -0800 Subject: [PATCH 1/1] 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 --- src/target/xscale.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/target/xscale.c b/src/target/xscale.c index 602034eb32..50c9595006 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; -- 2.30.2