summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authoroharboe <oharboe@b42882b7-edfa-0310-969c-e2dbd0fdcd60>2009-05-11 07:36:16 +0000
committeroharboe <oharboe@b42882b7-edfa-0310-969c-e2dbd0fdcd60>2009-05-11 07:36:16 +0000
commit3f05aebe4c489e2b1a403ff33afe53f3b15df620 (patch)
treebe7097a34c8b78fb44caab08bf3e40f6c4e44299 /src
parentb840546895145fa6f8048d742281c74baf312e54 (diff)
downloadopenocd+libswd-3f05aebe4c489e2b1a403ff33afe53f3b15df620.tar.gz
openocd+libswd-3f05aebe4c489e2b1a403ff33afe53f3b15df620.tar.bz2
openocd+libswd-3f05aebe4c489e2b1a403ff33afe53f3b15df620.tar.xz
openocd+libswd-3f05aebe4c489e2b1a403ff33afe53f3b15df620.zip
switch to jtag_add_callback() - USB performance fix
git-svn-id: svn://svn.berlios.de/openocd/trunk@1727 b42882b7-edfa-0310-969c-e2dbd0fdcd60
Diffstat (limited to 'src')
-rw-r--r--src/target/arm920t.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/src/target/arm920t.c b/src/target/arm920t.c
index cd3129b0..d34f734d 100644
--- a/src/target/arm920t.c
+++ b/src/target/arm920t.c
@@ -128,12 +128,11 @@ int arm920t_read_cp15_physical(target_t *target, int reg_addr, u32 *value)
jtag_add_dr_scan(4, fields, TAP_INVALID);
- u8 tmp[4];
- fields[1].in_value = tmp;
+ fields[1].in_value = (u8 *)value;
- 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);
#ifdef _DEBUG_INSTRUCTION_EXECUTION_
jtag_execute_queue();