aboutsummaryrefslogtreecommitdiff
path: root/src/target/etb.c
diff options
context:
space:
mode:
authorØyvind Harboe <oyvind.harboe@zylin.com>2010-03-18 18:34:34 +0100
committerØyvind Harboe <oyvind.harboe@zylin.com>2010-03-19 08:31:44 +0100
commit729845238228f577bc3d6369d83667e5e2df1aee (patch)
treedbc8dad9823e4ac4dd225c7436b7ef456afc8cdb /src/target/etb.c
parent8ce828dd382c907db4c6bd38e5b54996e50327fd (diff)
downloadriscv-openocd-729845238228f577bc3d6369d83667e5e2df1aee.zip
riscv-openocd-729845238228f577bc3d6369d83667e5e2df1aee.tar.gz
riscv-openocd-729845238228f577bc3d6369d83667e5e2df1aee.tar.bz2
jtag: remove unecessary usage of jtag_get_end_state().
By code inspection. Signed-off-by: Øyvind Harboe <oyvind.harboe@zylin.com>
Diffstat (limited to 'src/target/etb.c')
-rw-r--r--src/target/etb.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/target/etb.c b/src/target/etb.c
index 9971070..96a6e0d 100644
--- a/src/target/etb.c
+++ b/src/target/etb.c
@@ -60,7 +60,7 @@ static int etb_set_instr(struct etb *etb, uint32_t new_instr)
field.in_value = NULL;
- jtag_add_ir_scan(tap, &field, jtag_get_end_state());
+ jtag_add_ir_scan(tap, &field, TAP_IDLE);
free(field.out_value);
}
@@ -82,7 +82,7 @@ static int etb_scann(struct etb *etb, uint32_t new_scan_chain)
/* select INTEST instruction */
etb_set_instr(etb, 0x2);
- jtag_add_dr_scan(etb->tap, 1, &field, jtag_get_end_state());
+ jtag_add_dr_scan(etb->tap, 1, &field, TAP_IDLE);
etb->cur_scan_chain = new_scan_chain;