diff options
author | Zachary T Welch <zw@superlucidity.net> | 2009-11-15 05:57:37 -0800 |
---|---|---|
committer | Zachary T Welch <zw@superlucidity.net> | 2009-11-17 11:40:06 -0800 |
commit | 2861877b32a7a2f4022a1c3d9b66c9b4879878ac (patch) | |
tree | d0f25f82899181b13241b2147d6ad7c72765542c /src/target/arm966e.c | |
parent | 23402315ce01071f30d7ec0c5ca7563ce41f1cc6 (diff) | |
download | riscv-openocd-2861877b32a7a2f4022a1c3d9b66c9b4879878ac.zip riscv-openocd-2861877b32a7a2f4022a1c3d9b66c9b4879878ac.tar.gz riscv-openocd-2861877b32a7a2f4022a1c3d9b66c9b4879878ac.tar.bz2 |
command_handler: change 'cmd_ctx' to CMD_CTX
Convert all command handler 'cmd_ctx' parameter usage with CMD_CTX.
Diffstat (limited to 'src/target/arm966e.c')
-rw-r--r-- | src/target/arm966e.c | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/src/target/arm966e.c b/src/target/arm966e.c index ffc65cd..9302199 100644 --- a/src/target/arm966e.c +++ b/src/target/arm966e.c @@ -165,16 +165,16 @@ int arm966e_write_cp15(struct target *target, int reg_addr, uint32_t value) COMMAND_HANDLER(arm966e_handle_cp15_command) { int retval; - struct target *target = get_current_target(cmd_ctx); + struct target *target = get_current_target(CMD_CTX); struct arm966e_common *arm966e = target_to_arm966(target); - retval = arm966e_verify_pointer(cmd_ctx, arm966e); + retval = arm966e_verify_pointer(CMD_CTX, arm966e); if (retval != ERROR_OK) return retval; if (target->state != TARGET_HALTED) { - command_print(cmd_ctx, "target must be stopped for \"%s\" command", CMD_NAME); + command_print(CMD_CTX, "target must be stopped for \"%s\" command", CMD_NAME); return ERROR_OK; } @@ -189,7 +189,7 @@ COMMAND_HANDLER(arm966e_handle_cp15_command) uint32_t value; if ((retval = arm966e_read_cp15(target, address, &value)) != ERROR_OK) { - command_print(cmd_ctx, + command_print(CMD_CTX, "couldn't access reg %" PRIi32, address); return ERROR_OK; @@ -199,7 +199,7 @@ COMMAND_HANDLER(arm966e_handle_cp15_command) return retval; } - command_print(cmd_ctx, "%" PRIi32 ": %8.8" PRIx32, + command_print(CMD_CTX, "%" PRIi32 ": %8.8" PRIx32, address, value); } else if (CMD_ARGC == 2) @@ -208,12 +208,12 @@ COMMAND_HANDLER(arm966e_handle_cp15_command) COMMAND_PARSE_NUMBER(u32, CMD_ARGV[1], value); if ((retval = arm966e_write_cp15(target, address, value)) != ERROR_OK) { - command_print(cmd_ctx, + command_print(CMD_CTX, "couldn't access reg %" PRIi32, address); return ERROR_OK; } - command_print(cmd_ctx, "%" PRIi32 ": %8.8" PRIx32, + command_print(CMD_CTX, "%" PRIi32 ": %8.8" PRIx32, address, value); } } |