aboutsummaryrefslogtreecommitdiff
path: root/src/target/arm966e.c
diff options
context:
space:
mode:
authoroharboe <oharboe@b42882b7-edfa-0310-969c-e2dbd0fdcd60>2009-05-11 07:39:36 +0000
committeroharboe <oharboe@b42882b7-edfa-0310-969c-e2dbd0fdcd60>2009-05-11 07:39:36 +0000
commit4e477364fd793de58594103b7c7b747bd0476b76 (patch)
tree8f834ab3aeb855dc431c553dbc86267fc48cb929 /src/target/arm966e.c
parent9eb2deee0614bb79dfde70fcb65edbaaa458b761 (diff)
downloadriscv-openocd-4e477364fd793de58594103b7c7b747bd0476b76.zip
riscv-openocd-4e477364fd793de58594103b7c7b747bd0476b76.tar.gz
riscv-openocd-4e477364fd793de58594103b7c7b747bd0476b76.tar.bz2
switch to jtag_add_callback() - USB performance fix
git-svn-id: svn://svn.berlios.de/openocd/trunk@1729 b42882b7-edfa-0310-969c-e2dbd0fdcd60
Diffstat (limited to 'src/target/arm966e.c')
-rw-r--r--src/target/arm966e.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/src/target/arm966e.c b/src/target/arm966e.c
index effc272..b524076 100644
--- a/src/target/arm966e.c
+++ b/src/target/arm966e.c
@@ -190,12 +190,11 @@ int arm966e_read_cp15(target_t *target, int reg_addr, u32 *value)
jtag_add_dr_scan(3, fields, TAP_INVALID);
- u8 tmp[4];
- fields[1].in_value = tmp;
+ fields[1].in_value = (u8 *)value;
- jtag_add_dr_scan_now(3, fields, TAP_INVALID);
+ jtag_add_dr_scan(3, fields, TAP_INVALID);
- *value=le_to_h_u32(tmp);
+ jtag_add_callback(arm_le_to_h_u32, (u8 *)value);
#ifdef _DEBUG_INSTRUCTION_EXECUTION_