X-Git-Url: https://review.openocd.org/gitweb?p=openocd.git;a=blobdiff_plain;f=src%2Ftarget%2Farm7_9_common.c;h=28fefc5aab74fea942b680dcd55c9e31151e065f;hp=6a7bf9da58e62aea786c6e828a32e41930b05b37;hb=f29d157882a756e562d224dd128eea1bbe3e3813;hpb=6a81bad3b973e54ce68496d22750d643741afb32 diff --git a/src/target/arm7_9_common.c b/src/target/arm7_9_common.c index 6a7bf9da58..28fefc5aab 100644 --- a/src/target/arm7_9_common.c +++ b/src/target/arm7_9_common.c @@ -2682,6 +2682,15 @@ int arm7_9_examine(struct target *target) return retval; } +void arm7_9_deinit(struct target *target) +{ + struct arm7_9_common *arm7_9 = target_to_arm7_9(target); + + if (target_was_examined(target)) + embeddedice_free_reg_cache(arm7_9->eice_cache); + + arm_jtag_close_connection(&arm7_9->jtag_info); +} int arm7_9_check_reset(struct target *target) {