From fbf5bec7f3ea9f4a9584099a12e71681cb55ce35 Mon Sep 17 00:00:00 2001 From: drath Date: Sun, 6 Aug 2006 11:20:42 +0000 Subject: - fixed a minor problem with the GDB server that could drop the first packet (non-fatal) - fixed some small memory leaks (thanks to Spencer Oliver) - verify chip- and buswidth of cfi flash configurations - added support for ARM966E based systems (tested only with ST micro STR9, thanks to Spencer Oliver) git-svn-id: svn://svn.berlios.de/openocd/trunk@81 b42882b7-edfa-0310-969c-e2dbd0fdcd60 --- src/target/target.c | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'src/target/target.c') diff --git a/src/target/target.c b/src/target/target.c index 8b9939af..e88fb196 100644 --- a/src/target/target.c +++ b/src/target/target.c @@ -21,6 +21,7 @@ #include "config.h" #endif +#include "replacements.h" #include "target.h" #include "log.h" @@ -74,6 +75,7 @@ extern target_type_t arm7tdmi_target; extern target_type_t arm720t_target; extern target_type_t arm9tdmi_target; extern target_type_t arm920t_target; +extern target_type_t arm966e_target; target_type_t *target_types[] = { @@ -81,6 +83,7 @@ target_type_t *target_types[] = &arm9tdmi_target, &arm920t_target, &arm720t_target, + &arm966e_target, NULL, }; @@ -692,6 +695,7 @@ int target_read_buffer(struct target_s *target, u32 address, u32 size, u8 *buffe if ((retval = target->type->read_memory(target, address, 1, unaligned, buffer)) != ERROR_OK) return retval; + buffer += unaligned; address += unaligned; size -= unaligned; } @@ -704,6 +708,7 @@ int target_read_buffer(struct target_s *target, u32 address, u32 size, u8 *buffe if ((retval = target->type->read_memory(target, address, 4, aligned / 4, buffer)) != ERROR_OK) return retval; + buffer += aligned; address += aligned; size -= aligned; } -- cgit v1.2.3