summaryrefslogtreecommitdiff
path: root/src/target/etm.c
diff options
context:
space:
mode:
authorØyvind Harboe <oyvind.harboe@zylin.com>2010-03-18 12:07:41 +0100
committerØyvind Harboe <oyvind.harboe@zylin.com>2010-03-18 12:08:11 +0100
commitec108ff59e23ec32abf1223488ad96dd26205a5b (patch)
tree199488e7e879e24a2d02822a76b8b011db81813f /src/target/etm.c
parent46f92878da6c65eac275d1783e4e4019ec3c9af9 (diff)
downloadopenocd+libswd-ec108ff59e23ec32abf1223488ad96dd26205a5b.tar.gz
openocd+libswd-ec108ff59e23ec32abf1223488ad96dd26205a5b.tar.bz2
openocd+libswd-ec108ff59e23ec32abf1223488ad96dd26205a5b.tar.xz
openocd+libswd-ec108ff59e23ec32abf1223488ad96dd26205a5b.zip
jtag: retire one instance of jtag_get_end_state() usage
Less global variables.... Signed-off-by: Øyvind Harboe <oyvind.harboe@zylin.com>
Diffstat (limited to 'src/target/etm.c')
-rw-r--r--src/target/etm.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/target/etm.c b/src/target/etm.c
index a1c77b0f..3c25f4e8 100644
--- a/src/target/etm.c
+++ b/src/target/etm.c
@@ -505,8 +505,8 @@ static int etm_read_reg_w_check(struct reg *reg,
LOG_DEBUG("%s (%u)", r->name, reg_addr);
jtag_set_end_state(TAP_IDLE);
- arm_jtag_scann(etm_reg->jtag_info, 0x6);
- arm_jtag_set_instr(etm_reg->jtag_info, etm_reg->jtag_info->intest_instr, NULL);
+ arm_jtag_scann(etm_reg->jtag_info, 0x6, TAP_IDLE);
+ arm_jtag_set_instr(etm_reg->jtag_info, etm_reg->jtag_info->intest_instr, NULL, TAP_IDLE);
fields[0].num_bits = 32;
fields[0].out_value = reg->value;
@@ -588,8 +588,8 @@ static int etm_write_reg(struct reg *reg, uint32_t value)
LOG_DEBUG("%s (%u): 0x%8.8" PRIx32 "", r->name, reg_addr, value);
jtag_set_end_state(TAP_IDLE);
- arm_jtag_scann(etm_reg->jtag_info, 0x6);
- arm_jtag_set_instr(etm_reg->jtag_info, etm_reg->jtag_info->intest_instr, NULL);
+ arm_jtag_scann(etm_reg->jtag_info, 0x6, TAP_IDLE);
+ arm_jtag_set_instr(etm_reg->jtag_info, etm_reg->jtag_info->intest_instr, NULL, TAP_IDLE);
fields[0].num_bits = 32;
uint8_t tmp1[4];