summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authoroharboe <oharboe@b42882b7-edfa-0310-969c-e2dbd0fdcd60>2009-05-11 07:38:10 +0000
committeroharboe <oharboe@b42882b7-edfa-0310-969c-e2dbd0fdcd60>2009-05-11 07:38:10 +0000
commit9eb2deee0614bb79dfde70fcb65edbaaa458b761 (patch)
tree7e06480a9259ede937b0fce5799ecc2762def5ef /src
parent3f05aebe4c489e2b1a403ff33afe53f3b15df620 (diff)
downloadopenocd+libswd-9eb2deee0614bb79dfde70fcb65edbaaa458b761.tar.gz
openocd+libswd-9eb2deee0614bb79dfde70fcb65edbaaa458b761.tar.bz2
openocd+libswd-9eb2deee0614bb79dfde70fcb65edbaaa458b761.tar.xz
openocd+libswd-9eb2deee0614bb79dfde70fcb65edbaaa458b761.zip
switch to jtag_add_callback() - USB performance fix
git-svn-id: svn://svn.berlios.de/openocd/trunk@1728 b42882b7-edfa-0310-969c-e2dbd0fdcd60
Diffstat (limited to 'src')
-rw-r--r--src/target/arm926ejs.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/src/target/arm926ejs.c b/src/target/arm926ejs.c
index 6233c799..cef7061e 100644
--- a/src/target/arm926ejs.c
+++ b/src/target/arm926ejs.c
@@ -138,8 +138,7 @@ int arm926ejs_cp15_read(target_t *target, u32 op1, u32 op2, u32 CRn, u32 CRm, u3
fields[0].tap = jtag_info->tap;
fields[0].num_bits = 32;
fields[0].out_value = NULL;
- u8 tmp[4];
- fields[0].in_value = tmp;
+ fields[0].in_value = (u8 *)value;
fields[1].tap = jtag_info->tap;
@@ -165,9 +164,9 @@ int arm926ejs_cp15_read(target_t *target, u32 op1, u32 op2, u32 CRn, u32 CRm, u3
/* rescan with NOP, to wait for the access to complete */
access = 0;
nr_w_buf = 0;
- jtag_add_dr_scan_now(4, fields, TAP_INVALID);
+ jtag_add_dr_scan(4, fields, TAP_INVALID);
- *value=le_to_h_u32(tmp);
+ jtag_add_callback(arm_le_to_h_u32, (u8 *)value);
if ((retval = jtag_execute_queue()) != ERROR_OK)
{