]> git.sur5r.net Git - openocd/commitdiff
ARM720: bugfix
authorDavid Brownell <dbrownell@users.sourceforge.net>
Wed, 11 Nov 2009 03:06:10 +0000 (19:06 -0800)
committerDavid Brownell <dbrownell@users.sourceforge.net>
Wed, 11 Nov 2009 03:06:10 +0000 (19:06 -0800)
The "ARM720 uses the new inheritance/nesting scheme" patch
wrongly scrubbed a calloc() from arm720t_target_create().

Signed-off-by: David Brownell <dbrownell@users.sourceforge.net>
src/target/arm720t.c

index 728e197991e81d45b38a0a5f8e00fc19cf714ee6..c84ee287604ab2337191e3af7a04c8713c0ab58b 100644 (file)
@@ -403,8 +403,9 @@ static int arm720t_init_arch_info(target_t *target,
 
 static int arm720t_target_create(struct target_s *target, Jim_Interp *interp)
 {
-       struct arm720t_common_s *arm720t = target_to_arm720(target);
+       struct arm720t_common_s *arm720t = calloc(1, sizeof(*arm720t));
 
+       arm720t->arm7tdmi_common->arm7_9_common.armv4_5_common.is_armv4 = true;
        return arm720t_init_arch_info(target, arm720t, target->tap);
 }