aboutsummaryrefslogtreecommitdiff
path: root/src/target/mips32.c
diff options
context:
space:
mode:
authorSalvador Arroyo <sarroyofdez@yahoo.es>2013-03-02 16:20:42 +0100
committerSpencer Oliver <spen@spen-soft.co.uk>2013-04-02 15:14:50 +0000
commit74db7f9681c960c18c1ce2e3d317d931aaefe713 (patch)
tree18e2e2d12ff38712326c02624b3d88a0d80d7ae7 /src/target/mips32.c
parent37a6e402502d698aaf9d4f6d32fe4ccdcc5ff9b6 (diff)
downloadriscv-openocd-74db7f9681c960c18c1ce2e3d317d931aaefe713.zip
riscv-openocd-74db7f9681c960c18c1ce2e3d317d931aaefe713.tar.gz
riscv-openocd-74db7f9681c960c18c1ce2e3d317d931aaefe713.tar.bz2
mips: code cleanup in cp0 command handlers
After calling mips32_cp0_read() nothing has been queued, the call to jtag_exec_queue() is unnecessary. Change-Id: Ie25438045a8e9b6b1b170df7b52609d45f284b5a Signed-off-by: Salvador Arroyo <sarroyofdez@yahoo.es> Reviewed-on: http://openocd.zylin.com/1190 Tested-by: jenkins Reviewed-by: Spencer Oliver <spen@spen-soft.co.uk>
Diffstat (limited to 'src/target/mips32.c')
-rw-r--r--src/target/mips32.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/src/target/mips32.c b/src/target/mips32.c
index ab39e6e..1aaa6d6 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);