summaryrefslogtreecommitdiff
path: root/src/target/arm720t.c
diff options
context:
space:
mode:
authorDavid Brownell <dbrownell@users.sourceforge.net>2009-11-10 19:06:10 -0800
committerDavid Brownell <dbrownell@users.sourceforge.net>2009-11-10 19:06:10 -0800
commitd570e4f6f6ae13eccc3f701f4e0fe5beb51fb295 (patch)
tree5f0ac68a7759cf44d995cf2bcb426d42f925be69 /src/target/arm720t.c
parent61af6a681671eae69256dcc5b9e853cf9b161387 (diff)
downloadopenocd+libswd-d570e4f6f6ae13eccc3f701f4e0fe5beb51fb295.tar.gz
openocd+libswd-d570e4f6f6ae13eccc3f701f4e0fe5beb51fb295.tar.bz2
openocd+libswd-d570e4f6f6ae13eccc3f701f4e0fe5beb51fb295.tar.xz
openocd+libswd-d570e4f6f6ae13eccc3f701f4e0fe5beb51fb295.zip
ARM720: bugfix
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>
Diffstat (limited to 'src/target/arm720t.c')
-rw-r--r--src/target/arm720t.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/target/arm720t.c b/src/target/arm720t.c
index 728e1979..c84ee287 100644
--- a/src/target/arm720t.c
+++ b/src/target/arm720t.c
@@ -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);
}