diff options
author | duane <duane@b42882b7-edfa-0310-969c-e2dbd0fdcd60> | 2008-11-30 22:25:43 +0000 |
---|---|---|
committer | duane <duane@b42882b7-edfa-0310-969c-e2dbd0fdcd60> | 2008-11-30 22:25:43 +0000 |
commit | a28eaa85f73759bb189a46308642502c9fa5aa4b (patch) | |
tree | 93ed39ee8fe48131e227a01a788be91b88203064 /src/target/arm_jtag.c | |
parent | 91afc3dc3083a3d4f6a4104a5132d87c8ec03c7f (diff) | |
download | riscv-openocd-a28eaa85f73759bb189a46308642502c9fa5aa4b.zip riscv-openocd-a28eaa85f73759bb189a46308642502c9fa5aa4b.tar.gz riscv-openocd-a28eaa85f73759bb189a46308642502c9fa5aa4b.tar.bz2 |
jtag newtap change & huge manual update
git-svn-id: svn://svn.berlios.de/openocd/trunk@1194 b42882b7-edfa-0310-969c-e2dbd0fdcd60
Diffstat (limited to 'src/target/arm_jtag.c')
-rw-r--r-- | src/target/arm_jtag.c | 13 |
1 files changed, 7 insertions, 6 deletions
diff --git a/src/target/arm_jtag.c b/src/target/arm_jtag.c index 2967f08..888d0f7 100644 --- a/src/target/arm_jtag.c +++ b/src/target/arm_jtag.c @@ -38,17 +38,18 @@ int arm_jtag_set_instr(arm_jtag_t *jtag_info, u32 new_instr, in_handler_t handler) { - jtag_device_t *device = jtag_get_device(jtag_info->chain_pos); - if (device==NULL) + jtag_tap_t *tap; + tap = jtag_info->tap; + if (tap==NULL) return ERROR_FAIL; - if (buf_get_u32(device->cur_instr, 0, device->ir_length) != new_instr) + if (buf_get_u32(tap->cur_instr, 0, tap->ir_length) != new_instr) { scan_field_t field; u8 t[4]; - field.device = jtag_info->chain_pos; - field.num_bits = device->ir_length; + field.tap = tap; + field.num_bits = tap->ir_length; field.out_value = t; buf_set_u32(field.out_value, 0, field.num_bits, new_instr); field.out_mask = NULL; @@ -79,7 +80,7 @@ int arm_jtag_scann(arm_jtag_t *jtag_info, u32 new_scan_chain) return retval; } - jtag_add_dr_out(jtag_info->chain_pos, + jtag_add_dr_out(jtag_info->tap, 1, num_bits, values, |