summaryrefslogtreecommitdiff
path: root/src/target/arm9tdmi.c
diff options
context:
space:
mode:
authorzwelch <zwelch@b42882b7-edfa-0310-969c-e2dbd0fdcd60>2009-05-31 09:38:43 +0000
committerzwelch <zwelch@b42882b7-edfa-0310-969c-e2dbd0fdcd60>2009-05-31 09:38:43 +0000
commit9cb3af610a1d7cc2d8c1433f54077938d0268a8f (patch)
tree7429d8f73b1fba650f6674227291da316477b126 /src/target/arm9tdmi.c
parentfbe8cf72a5e6c80fed5fba8754d790ca63ad2b65 (diff)
downloadopenocd+libswd-9cb3af610a1d7cc2d8c1433f54077938d0268a8f.tar.gz
openocd+libswd-9cb3af610a1d7cc2d8c1433f54077938d0268a8f.tar.bz2
openocd+libswd-9cb3af610a1d7cc2d8c1433f54077938d0268a8f.tar.xz
openocd+libswd-9cb3af610a1d7cc2d8c1433f54077938d0268a8f.zip
Add wrappers for target->type->examined:
- replace all checks of target->type->examined with target_was_examined(). - replace all setting of target->type->examined with target_set_examined(). - replace clearing of target->type->examined with target_reset_examined(). - add documentation in target_s to warn not to access field directly. git-svn-id: svn://svn.berlios.de/openocd/trunk@1962 b42882b7-edfa-0310-969c-e2dbd0fdcd60
Diffstat (limited to 'src/target/arm9tdmi.c')
-rw-r--r--src/target/arm9tdmi.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/target/arm9tdmi.c b/src/target/arm9tdmi.c
index 4bcffd07..93b2d66c 100644
--- a/src/target/arm9tdmi.c
+++ b/src/target/arm9tdmi.c
@@ -810,7 +810,7 @@ int arm9tdmi_examine(struct target_s *target)
int retval;
armv4_5_common_t *armv4_5 = target->arch_info;
arm7_9_common_t *arm7_9 = armv4_5->arch_info;
- if (!target->type->examined)
+ if (!target_was_examined(target))
{
reg_cache_t **cache_p = register_get_last_cache_p(&target->reg_cache);
reg_cache_t *t;
@@ -827,7 +827,7 @@ int arm9tdmi_examine(struct target_s *target)
(*cache_p)->next = etm_build_reg_cache(target, jtag_info, arm7_9->etm_ctx);
arm7_9->etm_ctx->reg_cache = (*cache_p)->next;
}
- target->type->examined = 1;
+ target_set_examined(target);
}
if ((retval=embeddedice_setup(target))!=ERROR_OK)
return retval;