X-Git-Url: https://review.openocd.org/gitweb?p=openocd.git;a=blobdiff_plain;f=src%2Ftarget%2Farm7_9_common.c;h=6eade96a16a66f9bfbc8cc2809e7cd9579ac4958;hp=07beef51d4dd46d1c9405f501ae83be04e60e8fa;hb=5c2f920cc792d40f449cf596b5729671d0414fa1;hpb=37299b2b5809fa9a3bd531ca3e2528085e095a0e;ds=sidebyside diff --git a/src/target/arm7_9_common.c b/src/target/arm7_9_common.c index 07beef51d4..6eade96a16 100644 --- a/src/target/arm7_9_common.c +++ b/src/target/arm7_9_common.c @@ -26,7 +26,7 @@ * You should have received a copy of the GNU General Public License * * along with this program; if not, write to the * * Free Software Foundation, Inc., * - * 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. * + * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. * ***************************************************************************/ #ifdef HAVE_CONFIG_H @@ -2469,6 +2469,20 @@ int arm7_9_write_memory(struct target *target, return ERROR_OK; } +int arm7_9_write_memory_opt(struct target *target, + uint32_t address, + uint32_t size, + uint32_t count, + const uint8_t *buffer) +{ + struct arm7_9_common *arm7_9 = target_to_arm7_9(target); + + if (size == 4 && count > 32 && arm7_9->bulk_write_memory) + return arm7_9->bulk_write_memory(target, address, count, buffer); + else + return arm7_9_write_memory(target, address, size, count, buffer); +} + static int dcc_count; static const uint8_t *dcc_buffer;