diff options
Diffstat (limited to 'src/target/arm720t.c')
-rw-r--r-- | src/target/arm720t.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/target/arm720t.c b/src/target/arm720t.c index 3bac0beb..53d22245 100644 --- a/src/target/arm720t.c +++ b/src/target/arm720t.c @@ -429,12 +429,12 @@ COMMAND_HANDLER(arm720t_handle_cp15_command) } /* one or more argument, access a single register (write if second argument is given */ - if (argc >= 1) + if (CMD_ARGC >= 1) { uint32_t opcode; COMMAND_PARSE_NUMBER(u32, args[0], opcode); - if (argc == 1) + if (CMD_ARGC == 1) { uint32_t value; if ((retval = arm720t_read_cp15(target, opcode, &value)) != ERROR_OK) @@ -450,7 +450,7 @@ COMMAND_HANDLER(arm720t_handle_cp15_command) command_print(cmd_ctx, "0x%8.8" PRIx32 ": 0x%8.8" PRIx32 "", opcode, value); } - else if (argc == 2) + else if (CMD_ARGC == 2) { uint32_t value; COMMAND_PARSE_NUMBER(u32, args[1], value); |