diff options
author | oharboe <oharboe@b42882b7-edfa-0310-969c-e2dbd0fdcd60> | 2009-05-11 09:10:03 +0000 |
---|---|---|
committer | oharboe <oharboe@b42882b7-edfa-0310-969c-e2dbd0fdcd60> | 2009-05-11 09:10:03 +0000 |
commit | 55d89826aa3eea4ae4db5044a85d12cc973d5d3a (patch) | |
tree | 62ffb478f20978bb758d492c305e2ba72d2f1853 /src/target | |
parent | 8c77f7c69c7c849412af0ca2ccfbdbd143f95832 (diff) | |
download | openocd+libswd-55d89826aa3eea4ae4db5044a85d12cc973d5d3a.tar.gz openocd+libswd-55d89826aa3eea4ae4db5044a85d12cc973d5d3a.tar.bz2 openocd+libswd-55d89826aa3eea4ae4db5044a85d12cc973d5d3a.tar.xz openocd+libswd-55d89826aa3eea4ae4db5044a85d12cc973d5d3a.zip |
switch to jtag_add_dr_scan_check() - USB performance fix
git-svn-id: svn://svn.berlios.de/openocd/trunk@1737 b42882b7-edfa-0310-969c-e2dbd0fdcd60
Diffstat (limited to 'src/target')
-rw-r--r-- | src/target/embeddedice.c | 12 |
1 files changed, 9 insertions, 3 deletions
diff --git a/src/target/embeddedice.c b/src/target/embeddedice.c index 5234ac57..31ac0b4f 100644 --- a/src/target/embeddedice.c +++ b/src/target/embeddedice.c @@ -240,22 +240,30 @@ int embeddedice_read_reg_w_check(reg_t *reg, u8* check_value, u8* check_mask) fields[0].num_bits = 32; fields[0].out_value = reg->value; fields[0].in_value = NULL; + fields[0].check_value = NULL; + fields[0].check_mask = NULL; fields[1].tap = ice_reg->jtag_info->tap; fields[1].num_bits = 5; fields[1].out_value = field1_out; buf_set_u32(fields[1].out_value, 0, 5, reg_addr); fields[1].in_value = NULL; + fields[1].check_value = NULL; + fields[1].check_mask = NULL; fields[2].tap = ice_reg->jtag_info->tap; fields[2].num_bits = 1; fields[2].out_value = field2_out; buf_set_u32(fields[2].out_value, 0, 1, 0); fields[2].in_value = NULL; + fields[2].check_value = NULL; + fields[2].check_mask = NULL; jtag_add_dr_scan(3, fields, TAP_INVALID); fields[0].in_value = reg->value; + fields[0].check_value = check_value; + fields[0].check_mask = check_mask; /* when reading the DCC data register, leaving the address field set to * EICE_COMMS_DATA would read the register twice @@ -263,9 +271,7 @@ int embeddedice_read_reg_w_check(reg_t *reg, u8* check_value, u8* check_mask) */ buf_set_u32(fields[1].out_value, 0, 5, embeddedice_reg_arch_info[EICE_COMMS_CTRL]); - jtag_add_dr_scan(3, fields, TAP_INVALID); - - jtag_check_value_mask(fields+0, check_value, check_mask); + jtag_add_dr_scan_check(3, fields, TAP_INVALID); return ERROR_OK; } |