Hi folks,
Simple patch that fixes the broken xscale icache and dcache commands. I guess
maybe this broke when the helper functions and macros were changed at some
point.
I'm a relative newbie to the code base. If David or others prefer a more
correct way to fix this, please let me know and I'll try to oblige. Personally,
I'd separate the handlers for the two commands for the sake of clarity and
uniformity.
Mike
---
src/target/xscale.c | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/src/target/xscale.c b/src/target/xscale.c
index 602034e..59a0a88 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 (strcasecmp(CMD_NAME, "icache") == 0)
+ icache = true;
if (CMD_ARGC >= 1)
{
bool enable;
--
1.6.4.4
_______________________________________________
Openocd-development mailing list
[email protected]
https://lists.berlios.de/mailman/listinfo/openocd-development