X-Git-Url: https://review.openocd.org/gitweb?p=openocd.git;a=blobdiff_plain;f=src%2Ftarget%2Ftarget.c;h=04e375b8493dfefeb098284b9efd48eed18874a3;hp=279fc18fc655ca51a2709653863c5f1e20accb62;hb=4315142ea0d7035fe117b9e344beaf98c91ee35c;hpb=13288a44bee0aa26067cb51c262b82a12b61699f diff --git a/src/target/target.c b/src/target/target.c index 279fc18fc6..04e375b849 100644 --- a/src/target/target.c +++ b/src/target/target.c @@ -976,6 +976,12 @@ int target_bulk_write_memory(struct target *target, return target->type->bulk_write_memory(target, address, count, buffer); } +static int target_bulk_write_memory_default(struct target *target, + uint32_t address, uint32_t count, const uint8_t *buffer) +{ + return target_write_memory(target, address, 4, count, buffer); +} + int target_add_breakpoint(struct target *target, struct breakpoint *breakpoint) { @@ -1121,6 +1127,9 @@ static int target_init_one(struct command_context *cmd_ctx, if (target->type->write_buffer == NULL) target->type->write_buffer = target_write_buffer_default; + if (target->type->bulk_write_memory == NULL) + target->type->bulk_write_memory = target_bulk_write_memory_default; + return ERROR_OK; }