diff options
author | zwelch <zwelch@b42882b7-edfa-0310-969c-e2dbd0fdcd60> | 2009-05-31 09:38:43 +0000 |
---|---|---|
committer | zwelch <zwelch@b42882b7-edfa-0310-969c-e2dbd0fdcd60> | 2009-05-31 09:38:43 +0000 |
commit | 9cb3af610a1d7cc2d8c1433f54077938d0268a8f (patch) | |
tree | 7429d8f73b1fba650f6674227291da316477b126 /src/target/mips_m4k.c | |
parent | fbe8cf72a5e6c80fed5fba8754d790ca63ad2b65 (diff) | |
download | riscv-openocd-9cb3af610a1d7cc2d8c1433f54077938d0268a8f.zip riscv-openocd-9cb3af610a1d7cc2d8c1433f54077938d0268a8f.tar.gz riscv-openocd-9cb3af610a1d7cc2d8c1433f54077938d0268a8f.tar.bz2 |
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/mips_m4k.c')
-rw-r--r-- | src/target/mips_m4k.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/target/mips_m4k.c b/src/target/mips_m4k.c index e9fcf43..539cc56 100644 --- a/src/target/mips_m4k.c +++ b/src/target/mips_m4k.c @@ -854,7 +854,7 @@ int mips_m4k_examine(struct target_s *target) mips_ejtag_t *ejtag_info = &mips32->ejtag_info; u32 idcode = 0; - if (!target->type->examined) + if (!target_was_examined(target)) { mips_ejtag_get_idcode(ejtag_info, &idcode, NULL); ejtag_info->idcode = idcode; |