summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authoroharboe <oharboe@b42882b7-edfa-0310-969c-e2dbd0fdcd60>2009-05-11 09:43:50 +0000
committeroharboe <oharboe@b42882b7-edfa-0310-969c-e2dbd0fdcd60>2009-05-11 09:43:50 +0000
commit6dd335ed248124990b9a85dbc2e79f3239cd7ad0 (patch)
tree5e9ecfe92b2acee49e2273342a524af93a050ef4
parentfac70d72923b331510d1747267cddbb6975160a0 (diff)
downloadopenocd+libswd-6dd335ed248124990b9a85dbc2e79f3239cd7ad0.tar.gz
openocd+libswd-6dd335ed248124990b9a85dbc2e79f3239cd7ad0.tar.bz2
openocd+libswd-6dd335ed248124990b9a85dbc2e79f3239cd7ad0.tar.xz
openocd+libswd-6dd335ed248124990b9a85dbc2e79f3239cd7ad0.zip
USB performance regression fix
git-svn-id: svn://svn.berlios.de/openocd/trunk@1742 b42882b7-edfa-0310-969c-e2dbd0fdcd60
-rw-r--r--src/target/xscale.c20
1 files changed, 11 insertions, 9 deletions
diff --git a/src/target/xscale.c b/src/target/xscale.c
index 11aca781..abdbe866 100644
--- a/src/target/xscale.c
+++ b/src/target/xscale.c
@@ -213,6 +213,7 @@ int xscale_jtag_set_instr(jtag_tap_t *tap, u32 new_instr)
jtag_add_ir_scan(1, &field, TAP_INVALID);
+ /* FIX!!!! isn't this check superfluous? verify_ircapture handles this? */
jtag_check_value_mask(&field, tap->expected, tap->expected_mask);
free(field.out_value);
@@ -326,19 +327,22 @@ int xscale_receive(target_t *target, u32 *buffer, int num_words)
fields[0].tap = xscale->jtag_info.tap;
fields[0].num_bits = 3;
fields[0].out_value = NULL;
- u8 tmp2;
- fields[0].in_value = &tmp2;
+ fields[0].in_value = NULL;
+ fields[0].check_value = &field0_check_value;
+ fields[0].check_mask = &field0_check_mask;
fields[1].tap = xscale->jtag_info.tap;
fields[1].num_bits = 32;
fields[1].out_value = NULL;
-
+ fields[1].check_value = NULL;
+ fields[1].check_mask = NULL;
fields[2].tap = xscale->jtag_info.tap;
fields[2].num_bits = 1;
fields[2].out_value = NULL;
- u8 tmp3;
- fields[2].in_value = &tmp3;
+ fields[2].in_value = NULL;
+ fields[2].check_value = &field2_check_value;
+ fields[2].check_mask = &field2_check_mask;
jtag_add_end_state(TAP_IDLE);
xscale_jtag_set_instr(xscale->jtag_info.tap, xscale->jtag_info.dbgtx);
@@ -357,12 +361,10 @@ int xscale_receive(target_t *target, u32 *buffer, int num_words)
jtag_add_pathmove(3, path);
fields[1].in_value = (u8 *)(field1+i);
- jtag_add_dr_scan(3, fields, TAP_IDLE);
- jtag_add_callback(xscale_getbuf, (u8 *)(field1+i));
+ jtag_add_dr_scan_check(3, fields, TAP_IDLE);
- jtag_check_value_mask(fields+0, &field0_check_value, &field0_check_mask);
- jtag_check_value_mask(fields+2, &field2_check_value, &field2_check_mask);
+ jtag_add_callback(xscale_getbuf, (u8 *)(field1+i));
words_scheduled++;
}