diff --git a/src/target/mips32.c b/src/target/mips32.c index ab39e6e7f..1aaa6d6d8 100644 --- a/src/target/mips32.c +++ b/src/target/mips32.c @@ -758,12 +758,9 @@ COMMAND_HANDLER(mips32_handle_cp0_command) cp0_reg); return ERROR_OK; } - retval = jtag_execute_queue(); - if (retval != ERROR_OK) - return retval; - command_print(CMD_CTX, "cp0 reg %" PRIi32 ", select %" PRIi32 ": %8.8" PRIx32, cp0_reg, cp0_sel, value); + } else if (CMD_ARGC == 3) { uint32_t value; COMMAND_PARSE_NUMBER(u32, CMD_ARGV[2], value); diff --git a/src/target/mips_m4k.c b/src/target/mips_m4k.c index 485f4e8c7..a055696b0 100644 --- a/src/target/mips_m4k.c +++ b/src/target/mips_m4k.c @@ -1194,12 +1194,9 @@ COMMAND_HANDLER(mips_m4k_handle_cp0_command) cp0_reg); return ERROR_OK; } - retval = jtag_execute_queue(); - if (retval != ERROR_OK) - return retval; - command_print(CMD_CTX, "cp0 reg %" PRIi32 ", select %" PRIi32 ": %8.8" PRIx32, cp0_reg, cp0_sel, value); + } else if (CMD_ARGC == 3) { uint32_t value; COMMAND_PARSE_NUMBER(u32, CMD_ARGV[2], value);