diff options
author | Andreas Fritiofson <andreas.fritiofson@gmail.com> | 2013-03-08 01:17:18 +0100 |
---|---|---|
committer | Spencer Oliver <spen@spen-soft.co.uk> | 2013-03-15 15:56:25 +0000 |
commit | 4315142ea0d7035fe117b9e344beaf98c91ee35c (patch) | |
tree | 5a03b598d18b1d875a3942bbabf60e541cae1ee5 /src/target/cortex_m.c | |
parent | 13288a44bee0aa26067cb51c262b82a12b61699f (diff) |
target: Add default implementation of bulk_write_memory
Remove dummy implementations from all targets except arm7_9 and mips, which
are the only ones with real implementations. Replace with a single default
implementation simply calling target_write_memory().
Change-Id: I9228104240bc0b50661be20bc7909713ccda2164
Signed-off-by: Andreas Fritiofson <andreas.fritiofson@gmail.com>
Reviewed-on: http://openocd.zylin.com/1213
Tested-by: jenkins
Reviewed-by: Øyvind Harboe <oyvindharboe@gmail.com>
Reviewed-by: Spencer Oliver <spen@spen-soft.co.uk>
Diffstat (limited to 'src/target/cortex_m.c')
-rw-r--r-- | src/target/cortex_m.c | 7 |
1 files changed, 0 insertions, 7 deletions
diff --git a/src/target/cortex_m.c b/src/target/cortex_m.c index 1d645c67..c436bad4 100644 --- a/src/target/cortex_m.c +++ b/src/target/cortex_m.c @@ -1664,12 +1664,6 @@ static int cortex_m3_write_memory(struct target *target, uint32_t address, return retval; } -static int cortex_m3_bulk_write_memory(struct target *target, uint32_t address, - uint32_t count, const uint8_t *buffer) -{ - return cortex_m3_write_memory(target, address, 4, count, buffer); -} - static int cortex_m3_init_target(struct command_context *cmd_ctx, struct target *target) { @@ -2285,7 +2279,6 @@ struct target_type cortexm3_target = { .read_memory = cortex_m3_read_memory, .write_memory = cortex_m3_write_memory, - .bulk_write_memory = cortex_m3_bulk_write_memory, .checksum_memory = armv7m_checksum_memory, .blank_check_memory = armv7m_blank_check_memory, |