From 9cb3af610a1d7cc2d8c1433f54077938d0268a8f Mon Sep 17 00:00:00 2001 From: zwelch Date: Sun, 31 May 2009 09:38:43 +0000 Subject: 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 --- src/target/cortex_a8.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/target/cortex_a8.c') diff --git a/src/target/cortex_a8.c b/src/target/cortex_a8.c index 1e36f336..e02545fb 100644 --- a/src/target/cortex_a8.c +++ b/src/target/cortex_a8.c @@ -168,7 +168,7 @@ int cortex_a8_write_memory(struct target_s *target, u32 address, u32 size, u32 c int cortex_a8_handle_target_request(void *priv) { target_t *target = priv; - if (!target->type->examined) + if (!target_was_examined(target)) return ERROR_OK; armv7m_common_t *armv7m = target->arch_info; swjdp_common_t *swjdp = &armv7m->swjdp_info; -- cgit v1.2.3