diff options
author | oharboe <oharboe@b42882b7-edfa-0310-969c-e2dbd0fdcd60> | 2009-06-04 13:14:07 +0000 |
---|---|---|
committer | oharboe <oharboe@b42882b7-edfa-0310-969c-e2dbd0fdcd60> | 2009-06-04 13:14:07 +0000 |
commit | f133158175b568b9355e1bb3da159fd235723dec (patch) | |
tree | 72c3de1ff05ebacdff8f5b0371a7b90f0c403c45 /src/target/arm_jtag.c | |
parent | 310a9eabff252327092a5d8981942c549cfeb2ae (diff) | |
download | riscv-openocd-f133158175b568b9355e1bb3da159fd235723dec.zip riscv-openocd-f133158175b568b9355e1bb3da159fd235723dec.tar.gz riscv-openocd-f133158175b568b9355e1bb3da159fd235723dec.tar.bz2 |
Introduce jtag_get_end_state() fn to clarify code a bit.
git-svn-id: svn://svn.berlios.de/openocd/trunk@2049 b42882b7-edfa-0310-969c-e2dbd0fdcd60
Diffstat (limited to 'src/target/arm_jtag.c')
-rw-r--r-- | src/target/arm_jtag.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/target/arm_jtag.c b/src/target/arm_jtag.c index 90437f2..46539c1 100644 --- a/src/target/arm_jtag.c +++ b/src/target/arm_jtag.c @@ -53,13 +53,13 @@ int arm_jtag_set_instr(arm_jtag_t *jtag_info, u32 new_instr, void *no_verify_ca if (no_verify_capture==NULL) { - jtag_add_ir_scan(1, &field, jtag_add_end_state(TAP_INVALID)); + jtag_add_ir_scan(1, &field, jtag_get_end_state()); } else { /* FIX!!!! this is a kludge!!! arm926ejs.c should reimplement this arm_jtag_set_instr to * have special verification code. */ - jtag_add_ir_scan_noverify(1, &field, jtag_add_end_state(TAP_INVALID)); + jtag_add_ir_scan_noverify(1, &field, jtag_get_end_state()); } } @@ -86,7 +86,7 @@ int arm_jtag_scann(arm_jtag_t *jtag_info, u32 new_scan_chain) 1, num_bits, values, - jtag_add_end_state(TAP_INVALID)); + jtag_get_end_state()); jtag_info->cur_scan_chain = new_scan_chain; } |