summaryrefslogtreecommitdiff
path: root/src/jtag/zy1000
diff options
context:
space:
mode:
authorØyvind Harboe <oyvind.harboe@zylin.com>2010-02-09 09:55:56 +0100
committerØyvind Harboe <oyvind.harboe@zylin.com>2010-02-22 10:15:51 +0100
commit1f5883ea56cb058221f5731359da3d66838077e0 (patch)
tree2ae63bd433189b824fa8c3d1264f24fbf98e8745 /src/jtag/zy1000
parent90efc404f3cb9c3f6e7fdb8a2c22fb3e72e9072f (diff)
downloadopenocd_libswd-1f5883ea56cb058221f5731359da3d66838077e0.tar.gz
openocd_libswd-1f5883ea56cb058221f5731359da3d66838077e0.tar.bz2
openocd_libswd-1f5883ea56cb058221f5731359da3d66838077e0.tar.xz
openocd_libswd-1f5883ea56cb058221f5731359da3d66838077e0.zip
arm11: allow minidrivers to implement inner loop of memory writes
This allows minidrivers to e.g. hardware accelerate memory writes. Same trick as is used for arm7/9 dcc writes. Added error propagation for memory transfer failures in code rearrangement. Also the JTAG end state is not updated until after the memory write run is complete. Signed-off-by: Øyvind Harboe <oyvind.harboe@zylin.com>
Diffstat (limited to 'src/jtag/zy1000')
-rw-r--r--src/jtag/zy1000/zy1000.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/jtag/zy1000/zy1000.c b/src/jtag/zy1000/zy1000.c
index ef4f4821..da5aa366 100644
--- a/src/jtag/zy1000/zy1000.c
+++ b/src/jtag/zy1000/zy1000.c
@@ -845,6 +845,14 @@ void embeddedice_write_dcc(struct jtag_tap *tap, int reg_addr, uint8_t *buffer,
}
+int arm11_run_instr_data_to_core_noack_inner_default(struct arm11_common * arm11, uint32_t opcode, uint32_t * data, size_t count);
+
+int arm11_run_instr_data_to_core_noack_inner(struct arm11_common * arm11, uint32_t opcode, uint32_t * data, size_t count)
+{
+ return arm11_run_instr_data_to_core_noack_inner_default(arm11, opcode, data, count);
+}
+
+
static const struct command_registration zy1000_commands[] = {
{
.name = "power",